How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

April 3, 2020

How to bypass htpasswd with specific ip

Filed under: Linux — Tags: , , — admin @ 2:15 pm

If you have code below and want to bypass your ip then you need to go to final form

AuthType Basic
AuthName “Private area”
AuthUserFile /var/www/html/dpath/.htpasswd
Require valid-user

Into this:

AuthType Basic
AuthName “Private area”
AuthUserFile /var/www/html/dpath/.htpasswd
Require valid-user

Order allow,deny
Allow from xxx.xxx.xxx.xxx
satisfy any

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress