Forum Moderators: phranque
I'm not sure where to post this so feel free to move it if its in the wrong place.
I have a client with a competitor who has been copying content off my client's site every time we update it and posting it around the net under his own name. We managed to get most of it removed by contacting the owners of the sites but it's like putting out a forest fire with a tea cup. We would like to try bannin his ISP. It won't stop him but it will slow him down.
I read on the net I can disallow an ISP by putting code in the .htaccess file but it also didn't load the SSI's that were working earlier after I put this in. Is there something wrong with the code?
<Limit GET>
order allow,deny
allow from all
deny from TheIspAddressWentHere.com
</Limit>
Should I use IP #s instead of the name or does it matter? Any suggestions?
If you have the IP addresses, use them. Using a hostname forces your server to do a reverse-DNS request to the DNS system, and this will slow down *all* requests to your server.
Note also that I changed the container from <Limit> to <Files>. Otherwise, you end up restricting access only for the GET method, and not for POST, DELETE, and all the other HTTP methods.
<Files *>
Order Allow,Deny
Allow from all
Deny from 192.168.0.1
Deny from 192.168.1.
</Files>
Jim
I use a Mac
do a google for george's canufly or use the one of these boxes (I can never recall which)
[dnsstuff.com...]