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
    • 145
    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.

    Order deny,allow
    Deny from all
    Allow from "112.xxx.x.xxx|113.xxx.x.xxx|113.xxx.x.xxx"
    AuthType Basic
    AuthUserFile /opt/.htpasswd
    AuthName "Protected Area"
    require valid-user
    Allow from "112.xxx.x.xxx|113.xxx.x.xxx|113.xxx.x.xxx"
    Satisfy Any
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: