block and IP address from accessing my site? Print

  • 0

Block and IP address from accessing my site?

In order to block a certain IP Address from access to your site you can add the following to the .htaccess file in your web server document root ( most often named public_html, httpdocs, or webdocs) directory (edit to make the below IP the offender's):

order deny,allow
deny from 209.23.123.110
This will block access to your main pages, and all pages in all subdirectories. To block them from seeing only one, or some subdirectories, place the .htaccess directives above in the highest subdirectory that you want blocked.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution


["\r\n