Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • htaccess to allow for more then one address without asking for Authentication

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 574
    Comment on it

    Suppose we are working on a project in a local area network where all developer have same IP Address. then most of times its a requirement that project must be accessed directly without authentication.


    But at the same case if any one trying to access the project from outside of LAN, It must prompt for enter the password.

    In this code, We are allowing more then one IP Address for which it will directly access not required authentication.

    1. Order deny,allow
    2. Deny from all
    3. Allow from "112.xxx.x.xxx|113.xxx.x.xxx|113.xxx.x.xxx"
    4. AuthType Basic
    5. AuthUserFile /opt/.htpasswd
    6. AuthName "Protected Area"
    7. require valid-user
    8. Allow from "112.xxx.x.xxx|113.xxx.x.xxx|113.xxx.x.xxx"
    9. Satisfy Any

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: