BLOCK A DOMAIN access to my site

Creazioni1

Well-Known Member
Dec 28, 2003
58
0
156
HI

there is possibility to block access to my site from a domain??

ThIS domain insert my banner into site and every 2 seconds open 400 process and apache go down

can i block this domain?
 

bamasbest

Well-Known Member
Jan 10, 2004
531
0
166
Hmmm...

try editing your .htaccess to look something like this...

<LIMIT GET POST>
order deny,allow
deny from www.sitename.com
</LIMIT>


see if that works?
 

Chew

Well-Known Member
Dec 31, 2003
96
0
156
Maryland
or block him our totally from your firewall, and don't even have httpd process his commands. simply drop the packets. more often than not, if it's a web server, it's got a static ip address.

Do a ping and obtain the IP that way.

Chew
 

BrightAdmin

Well-Known Member
Feb 29, 2004
204
0
166
Hi Creazioni1,
As bamasbest has suggested, you can block any domain by adding the LIMIT in the .htaccess file as follows,

<Limit GET HEAD POST>
order allow,deny
deny from <Domain name you want to block>
deny from <IP address of the domain>
allow from all
</LIMIT>

You can generate code to block domains using the following link:
http://htmlbasix.com/blockusers.shtml

Regards, :(