Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For blocking, I use zone files, not the HOSTS file.

I can select specific subdomains; I can also use wildcards.

I doubt there is anything an ad blocker can block that I cannot block using DNS. But if you have examples, post them and let's see.



Can your method block cookies and frames from a domain, but allow Javascript and XHR?


I accept session cookies only, I keep Javascript turned off except when I am forced to turn it on (banking, etc.), and I really do not like frames.

If there is some site with frames that I willingly use regularly, I just bust out of the frame and access the contents directly.

Hence what you are describing does not sound like something I desperately need to do.

The only way I can answer your question is if you give me an example: a website with ads to block. Then I'll test it.

I should note though that cookies are not ads; the original topic was blocking ads - you are shifting the goalposts.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: