How to block some parts of a website through /etc/hosts?
For example if a website has 10 sections,
I'd like to block 3 of them, only. System admins here aren't willing to help in this case. So, is there a way to do this through /etc/hosts etc.? |
well, if that websites have different subdomain and different IP address for that domain, that you can make a wrong IP entry to those domain into /etc/hosts. that can work
for eg: Code:
cat /etc/hosts |
For "example", LQ has sub forums, and if I'd like
to block 5 particular sub forums out of 10, then what am I supposed to do? |
You can't with /etc/hosts since it accepts only domains and ip addresses so you'll end up to block entire sites, not oly some pages.
For this purpose you use aproxy like squid and configure its policies. |
Code:
cat /etc/hosts |
If the url you want to block is an entire domain (even third level domain) it's ok and you can use /etc/hosts like you shown, but if you want to block a specific page or url like www.linuxquestions.org/reviews/ you have to find another way.
|
Quote:
sections like newbie, software, /General etc. Quote:
Thanks. |
Here you will find more info about how and why to block sites: http://pgl.yoyo.org/as/
I believe the 1st reason is the ads that come with most pages now days and it does require extra bandwidth to browse, it may effect more those who don't have fast connection, in any case to block ads is the one thing that concerns people more. Personally I do hate ads, side, top, botton banners blinking only serve to distract. I do never ever click on them, so why not to block them. Here my list of blocks: Code:
127.0.0.1 doubleclick.net |
All times are GMT -5. The time now is 02:31 PM. |