I find adverts on websites annoying, really, really annoying (which is why they’re not on this site). I use IE exclusively in the office and I thought it made sense to block it, so that when I’m reading Ars Technica or El Reg my eyes stop bleeding. I found a great article that explains how to do this at “Learn with Nirab”. I’m rewriting what he says to make it a little easier to follow:
What do I do?
Go here, http://www.fanboy.co.nz/adblock/ie.html, and underneath Fanboy Adblock List for Internet Explorer 9, click Add TPL.
Go here, http://dl.dropbox.com/u/17445922/ElementHidingRules.zip, and extract the file to your ‘My Documents’ or ‘Documents’ Library.
Now you just need to go to Internet Options > General > Accessibility and select “Format documents using my style sheet”. Enter the path to ElementHidingRules.css file you extracted earlier and hit OK, OK.
Enjoy. I’ve tried it on Bing, Google, Ars Technica and a handful of others and it all seems to work! :-)
Can I do this via GPO?
Yes, probably. I’ve done a little bit of research and I found the necessary settings within the registry to enforce the CSS.
The key: HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerStyles
Essentially all you then need is a GPO to copy the file over and have, that same GPO possibly, add this registry key. What I cannot find, because it doesn’t exist, is a GPO to force the necessary TPL setting. There may be a script o’matic solution, or the existing TPL settings could be used. It’s worth a shot at any rate!
I’ve checksumed the file ElementHidingRules.css that I used to block ads with, I do not warrant it in any way and you use it at your own discretion!
Checksums generated by ExactFile 22.214.171.124
PS How could I be any kind of security consultant and not provide a checksum for a file I link to! :-)