SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot sifuhall's Avatar
    Join Date
    Jun 2001
    Location
    out of the sidehatch
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    htaccess with password exception?

    My goal is to edit my .htaccess file to require a user/password combination for all connections except a single IP.

    My current htaccess file requires a password from all connections and is this:

    Code:
    AuthType Basic
    AuthName "dev"
    AuthUserFile "/home/ddragon/.htpasswds/public_html/passwd"
    require valid-user
    How can I allow 1 IP to bypass the user/pass requirement?

    I've tried this:

    Code:
    AuthType Basic
    AuthName "dev"
    AuthUserFile "/home/ddragon/.htpasswds/public_html/passwd"
    require valid-user
    Allow from <<removed>>
    Satisfy Any
    but no luck.

    Any help is really appreciated!

  2. #2
    SitePoint Zealot sifuhall's Avatar
    Join Date
    Jun 2001
    Location
    out of the sidehatch
    Posts
    135
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like I was missing a few lines.

    This works:

    Code:
    AuthType Basic
    AuthName "dev"
    AuthUserFile "/home/ddragon/.htpasswds/public_html/passwd"
    require valid-user
    Order deny,allow
    Deny from all
    Allow from <<removed>>
    Satisfy Any


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •