PDA

View Full Version : How do I stop certain domains/countries from viewing my pages


6foot4
2004-05-18, 01:44 PM
I have a list of some asian/russian countries and sites that just waste my BW... that I dont want linking to me or seeing my pages. How can I stop them from viewing my pages etc..

If they cannot signup with a CC.. then really I dont want them on my BW.


Can anyone help with that?

Cleo
2004-05-18, 01:51 PM
www.sexmoney.com has htaccess that you can put in place that redirects by country.

6foot4
2004-05-18, 04:00 PM
thanks will check it out

Altheon
2004-05-26, 01:06 AM
To expand on Cleo's response, you can just block out certain ip blocks in .htaccess or if you have your own box you can use iptables to just drop the packets.

Here is a snippet that I got from MrYellow of webpimps.com



Order allow,deny
allow from all
#Saudi
deny from 212.138.47.
deny from 212.138.64.
#unknown
deny from 203.149.16.
#Egypt
deny from 62.114.126.
#Chez
deny from 195.116.60.1
#UAE
deny from 195.229.241.



-A

Useless
2004-05-27, 12:32 AM
Stand outside your site and yell, "You can't come in here!"

That, or you can use htaccess as Cleo stated.

seb
2004-05-27, 01:52 PM
you can always damn specific domains referrals on your HTACCESS file

Surfn
2004-05-27, 01:56 PM
I find a couple of RPG's are helpful :D