Throw in a specific folder . htaccess file:

Deny from all / / do not allow to go here and everything.

Allow from / / allow only walk with a certain ip.

We find in the directory / etc/apache2 files containing AllowOverride None , look for those files that belong to our catalog and regulations None on All , while removing all other rules relating to access to the directory.

For example:

AllowOverride None

Order deny, allow

Deny from all

Change in AllowOverride All , the other 2 rules are removed.