Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to block all the pages of the website except several ones. Tried putting something like "127.0.0.1 website.com/page.html" to "C:\Windows\System32\drivers\etc\hosts". It doesn't work. Seems like in this way you can block only the whole website.

share
add comment

2 Answers

up vote 1 down vote accepted

/etc/hosts, like DNS, is for hostname resolution - it works at a lower level than HTTP, and only deals with hosts and IP addresses.

To block websites partially, you could try a HTTP proxy with filtering capabilities - Privoxy or maybe even Squid. There also are specialized filtering proxies.

share
add comment

Chrome allows you to block all websites with exceptions in the registry. Refer to this page on how to edit the registry. Add all website by adding

"*" 

in the blacklist, then make exceptions in the whitelist. If you need an easier way, go to the Google Web Store and install TinyFilter.

share
add comment

This site is currently not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .