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

<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.
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

be on the lookout for these common grammatical slip-ups

Takeaway: Sending a less-than-perfect e-mail to a friend is one thing; mistakes aren't really a...

Font Basics for Branding Your Small Business

There are many components of a brand identity: logo, color palette, font choice, and the Visual...

Change The Default Index Files!

Change Default Index Files Most web-domains setup your account to use a specific file extension...

Website traffic statistics

Question:I was hoping to find out how many hits the website gets. How do I go about checking the...