Squid proxy: block Flash adverts
Hello
I have set up a Squid proxy on my router so that I can block some sites and filter out banner adverts. I'm pleased with this. Is there a way that i can filter out flash banner adverts? Thanks in advance Hamish |
If you use firefox then the adblock extension does the trick - cant help with other browsers, sorry.
|
Block the URL the advert is hosted at. Can do this either through Squid ACL's, SquidGuard, or DansGuardian (how we're running it). This handles normal adverts and Flash adverts, as it simply stops any content from the specific domain. Don't know a way to do it on the fly - our proxies parse their logfiles each evening for key words (some being adverts) and add the domains to the blocked list. You could a regex to scan the request, and deny access if the URL contains an ad-related word, but you could go on + on if you try that. We're running about 7000 or so banned domains for ad-hosting companies, so we don't see many ads in web pages - Flash or otherwise :)
|
Fouldsy,
would you be able to post us the script which you use to parse your log files? Kind regards Hamish |
Final Solution
Just create an ACL in squid server for flash advertisement's mime type and block that ACL from browsing clients
|
All times are GMT -5. The time now is 12:18 PM. |