loader

How do I block an IP address from accessing my site? Drucken

  • 3

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):

<Limit GET>
order deny,allow
deny from 209.23.123.110
</Limit>



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.

War diese Antwort hilfreich?

« Zurück