Does anyone know the .htaccess code to block all other ip addresses from accessing /administration folder except my own ip address?
For example if anyone of a different ip address tries to access the administration folder they get a 403 document.
Does anyone know the .htaccess code to block all other ip addresses from accessing /administration folder except my own ip address?
For example if anyone of a different ip address tries to access the administration folder they get a 403 document. |
Order deny,allow Deny from all Allow from [IP address] BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
hello, many years after this post and still there is no on the nail answer.. where and how exactly do you add this? been searching weeks now Creative Progressive Progression |
First of all, realise that .htaccess is only for Apache; so if you are running Nginx, it is done differently. The way .htaccess works is that it will be applied to the directory it is placed in and any subdirectories of that directory. In this case, you would place the file in the /administration directory. Geeks, making the world a better place |