CityHost.UA
Help and support

How to block access to a specific site URL?

— If it is necessary to block a certain URI on the site, for example, for downloads/system/, you need to add the following lines of rules in the .htaccess file:

SetEnvIf Request_URI "/downloads/system.*" deny
Allow from YOUR_IP_ADDRESS
Deny from env=deny
access to the entire website for everyone will be OPEN , the downloads/system/ page and all subsequent elements in the request will be available only to your IP address;

 

— If you need to unblock for each specific URI on the site and block all other pages, for example, for downloads/system/, you need the following lines of rules in the .htaccess file:

SetEnvIf Request_URI "/downloads/system.*" allow
Allow from env=allow
Allow from YOUR_IP_ADDRESS
Deny from all
access to the entire website will be CLOSED for everyone except you, downloads/system/ and all subsequent elements in the request will be available to everyone;