how to block country domains?

Stern

Senior member
Sep 3, 2004
625
0
86
hey there, I was wondering if there is some simple way to, for example, block the entire *.ru domain on my PC so that any requests to there just get sent straight to 127.0.0.1

Anyone know a way of doing this? It doesn't sound that hard to me, but I don't know where to start.

Thanks!
 

Stern

Senior member
Sep 3, 2004
625
0
86
Oh by the way, after several google searches, might I add that I am not looking for a way to do this in apache or any other specific software. I just want any dns lookup for .ru to go to 127.0.0.1
I assume I need to edit my hosts file but I've tried a few ways that don't seem to work. I'm using www.google.ru to test.
 

neit

Senior member
Dec 6, 2001
353
0
0
i'm pretty sure opendns will let you create an (free) account that lets you set up customfilters, then set your pc or router to use their dns servers.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
The hosts file is the only thing consulted for local resolution unless you setup your own DNS server and AFAIK hosts files don't support any kind of wildcarding.