It appears you have not yet registered with our community. To register, please click here...

AWH Forums  

Go Back   AWH Forums > AWH > FAQs > Apache

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2003, 09:23 AM
Ronnie's Avatar
Ronnie Ronnie is offline
#1 Administrator
 
Join Date: Apr 2002
Location: Dallas, TX
Posts: 1,713
Block IP addresses from my site?

Quote:
Can I block certain IP addresses from seeing my website?
Yes, you can block certain IP addresses from accessing your site by using a Deny directive in an .htaccess file.

The Apache documentation explains how to do this:
http://httpd.apache.org/docs/mod/mod_access.html
http://httpd.apache.org/docs/howto/auth.html

For example, if you put the following .htaccess file in a directory, then it would operate on all directories beneath it:
Code:
Deny from evil-person.attbi.com
Deny from 51.128.65.62
Deny from 207.51.29
The first Deny directive would block the exact host mentioned. The second Deny would block the exact IP address 61.128.65.62. The third directive would block all IP addresses fitting the pattern 207.51.29.anything.
__________________
Always Yours,

Ronnie T. Moore, Owner
AlwaysWebHosting.com • Friendly hosting & support
cPanel 11 with Fantastico • Host up to 10 domains!
We accept credit card & PayPal • 30-day guarantee
Visit us at http://www.alwayswebhosting.com/
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -6. The time now is 07:34 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.