.htaccess

Throw in a specific folder . htaccess file:

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

Allow from 10.0.0.90 10.0.0.86 172.24.0.196 10.8.0.0/24 172.24.0.204 10.0.0.66 / / 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.