How do I block an 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.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Plesk Docs

http://www.parallels.com/products/plesk/docs/

How we can delete parked domain?

To remove a parked domain, Please follow below simple steps:Step-1:Login to plesk panel by using...

MX entires for google apps

MX Server ddress                   Priority SPMX.L.GOOGLE.COM.           10...

..htaccess guidance

  .htaccess guidance .htaccess is a special Apache file that tells your website how to...

Linux Sites preview Offline

Linux Site's Preview Offline   http://IP_address/~UserName OR http://ServerName/~userName...