Welcome to Centmin Mod Community
Register Now

Nginx How to properly password protect a directory or file?

Discussion in 'Centmin Mod Insights' started by rdan, Jun 25, 2014.

Tags:
  1. Jimmy

    Jimmy Well-Known Member

    1,799
    391
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +999
    Local Time:
    6:46 PM
    got ya. usr and usr.

     
  2. Jon Snow

    Jon Snow Active Member

    917
    188
    43
    Jun 30, 2017
    Ratings:
    +293
    Local Time:
    7:46 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    If I wanted to do things manually, is it as simple as creating a file with the user/pass details and just editing my vhost config file to use that path and restarting nginx?
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:46 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yes what has been discussed in this whole thread :)
     
  4. Jon Snow

    Jon Snow Active Member

    917
    188
    43
    Jun 30, 2017
    Ratings:
    +293
    Local Time:
    7:46 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    I read it all but I was still confused because there was a line for a script to run. I prefer to do things manually first so I know what the script does automatically (want to only use scripts to save time). Thanks!
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:46 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  6. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    5:46 PM
    Is there a way to protect a Xenforo page?
    I have a pay where I have a form to take CC payment for guest and I want to have a simple way for people to enter this page without allowing spambots to abuse it.
     
  7. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    8:46 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    For user experience probably better to leverage Cloudflare WAF to block bad actors rather than make legit users jump through more hoops
     
  8. Andy

    Andy Active Member

    546
    90
    28
    Aug 6, 2014
    Ratings:
    +134
    Local Time:
    5:46 PM
    I agree. I was looking on XF and it seems they only apply Cloudflare Turnstile on certain pages (registration, etc).
    I couldn't find a way to apply those capcha on specific XF pages.