Answer the question
In order to leave comments, you need to log in
How to disable .htaccess access for a specific IP?
I can’t close access to the site for a specific IP address, in the end it turns out that I close access to myself ...
Or it falls into a 500 error.
Order Allow,Deny
Allow from all
Deny from *.*.*.*
Options -Indexes
Options +FollowSymLinks
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value session.use_cookies 1
php_value session.use_only_cookies 1
php_value session.cookie_lifetime 0
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A7200
ExpiresByType text/html A1
</IfModule>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question