How do you block websites on a PC?

Mave

TMS Founder
Administrator
Messages
236,079
Location
Belgium
I forgot, and I really need to block TVshack on my sis' PC.

I don't want to just block it in one browser, but so that it cannot be accessed at all.

She's eating the bandwith D:
 
Control Panel/Network & net connections/Internet Options/Security Tab (now it's rly easy to figure it out)
 
Thanks mate, I'll just fill them in in the restricted sites area whenever I get a hold of her PC again :3
Cookie earned.
 
ThePro said:
You could also edit the hosts file, and set for example www.google.com with 127.0.0.1
^ Probably a better way, I don't think every browser obeys Internet Options, especially when it comes to things like blocking sites.

If you don't know how, open X:\Windows\System32\drivers\etc\hosts as administrator with something like Notepad.
Add these lines (anywhere) to block a site, obviously replace www.example.com, you can also replace the IP with a non-existant one.
Code:
127.0.0.1		[url=http://www.example.com]www.example.com[/url]
(edit: epic SMF link fail above)
It sets it so the domain you specify will resolve to that IP. So, rather than trying to look up the DNS for www.example.com, it will go to 127.0.0.1.
 
/system32/drivers/etc/hosts file:
Code:
sis.you.suck		http://tvshack.net
 
Back
Top Bottom