FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

.htaccess IP Blocking

 


puccavn
Block certain visitors IPs from viewing your site
Added on 25/05/2004 by Jay
Views: 3161 Comments: 2 Rating: 10.0/10 (1 votes)

Ever wanted to stop someone getting on your site? And you somehow fount out their IP address? Well here's how using the .htaccess file technique.

Here's the code:
deny from <ip>

Simply replace <ip> with the user's IP that you wish to ban, and they will be unable to get onto your site.
assaultdk
:)
Isnt there enough of those?
gonzo
You need to set the order

specify the blocks

then allow all




Code:
order allow,deny
deny from 200.
deny from 210.
deny from 211.
deny from 212.
allow from all


keeps out ALOT of referer spam. I don't recommend it for commercial sites.
easybiz
Good info..
Related topics

.htaccess tutorial
Como funciona o .htaccess
Bad news about the Server 2
IP Banning
News Script

Spam filter
need IP blocker on my site
Spammers on FriHost
I need a counter for my visitor..
Are you blocking ip address of banned users?

IP Address Banning ( Not using .htaccess)
Blocking out proxies
General .htaccess tutorial.
Fantastico could be updated
.htaccess problem
Reply to topic    Frihost Forum Index -> Miscellaneous -> Tutorials

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.