Is there a way on my Windows XP machine to blacklist certain HTTP URLS so that embedded web service calls won't trigger activity from my PC to those URLs?

link|improve this question

75% accept rate
2  
Yes, install one of the myriad of personal security suites that do HTTP filtering. – squillman Mar 11 '10 at 18:56
feedback

migrated from serverfault.com Mar 11 '10 at 20:03

This question came from our site for system administrators and desktop support professionals.

2 Answers

Firewalls or packet filtering are often a good solution for things like this.

One hack solution would be to specify entries for the hostnames directing to localhost in C:\windows\system32\drivers\etc\hosts.

For example:

127.0.0.1 www.google.com would prevent all access to www.google.com.

link|improve this answer
adding those bogus entries to the hosts file didn't seem to have any effect at all. :-( – jeffspost Mar 11 '10 at 19:33
Restart the Web browser. Caching sometimes takes affect. – Warner Mar 11 '10 at 19:42
if it's being pesky, shut down the web browser, then type 'ipconfig /flushdns' to clear your dns cache, then reopen your browser – Roy Rico Mar 11 '10 at 23:16
feedback

One standard way is to put entries in your hosts.txt file that redirect the offending domain names. Handy for blocking ads for instance.

ie, in \windows\syste32\drivers\etc\hosts.txt

127.0.0.1 youclick2earn.com

for extra credit, install apache locally and capture all URLs so you can display [ad] instead of a broken link.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.