LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Squid proxy: block Flash adverts (https://www.linuxquestions.org/questions/linux-software-2/squid-proxy-block-flash-adverts-389903/)

hamish 12-06-2005 01:52 PM

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

beagle2 12-07-2005 07:21 AM

If you use firefox then the adblock extension does the trick - cant help with other browsers, sorry.

fouldsy 12-07-2005 12:23 PM

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 :)

hamish 12-11-2005 04:23 PM

Fouldsy,

would you be able to post us the script which you use to parse your log files?

Kind regards
Hamish

linuxmen 02-13-2012 07:42 AM

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.