R
R
RuRoman2021-11-09 12:01:40
htaccess
RuRoman, 2021-11-09 12:01:40

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 *.*.*.*


Instead of asterisks, I specify a specific IP address!

Insert right after the lines:

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 question

Ask a Question

731 491 924 answers to any question