A
A
Alexander2019-07-09 12:17:01
Apache HTTP Server
Alexander, 2019-07-09 12:17:01

How to write a .htaccess rule to ask for a password?

I ask experts for help in writing a rule for requesting htaccess authorization if client IP = 192.168.1.1?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2019-07-09
@SmoKE_xD

AuthUserFile /var/www/mysite/.htpasswd
AuthName "Please Log In"
AuthType Basic
require valid-user
Order allow,deny
Allow from 192.168.1.1
satisfy any

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question