Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-06-2005, 02:52 PM   #1
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
Squid proxy: block Flash adverts


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
Old 12-07-2005, 08:21 AM   #2
Registered: Aug 2004
Location: Aberdeen Scotland
Distribution: elive,sidux,xp,pclinuxos super gamer, mandriva 2007
Posts: 417

Rep: Reputation: 30
If you use firefox then the adblock extension does the trick - cant help with other browsers, sorry.
Old 12-07-2005, 01:23 PM   #3
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
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
Old 12-11-2005, 05:23 PM   #4
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30

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

Kind regards
Old 02-13-2012, 08:42 AM   #5
Registered: Aug 2011
Distribution: fedora14,11, RHEL5, CentOS6, win2008R2, Win7
Posts: 45

Rep: Reputation: 4
Smile Final Solution

Just create an ACL in squid server for flash advertisement's mime type and block that ACL from browsing clients

Last edited by Tinkster; 02-24-2012 at 06:39 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 12:25 PM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 02:38 AM
Need help to connect a squid proxy to connect to another squid proxy server bellerophon Linux - Newbie 1 02-07-2006 07:52 AM
block access to other proxy servers jymbo Linux - Networking 4 07-06-2004 02:59 PM
How can i block msn through squid linuxeagle Linux - Networking 5 04-08-2004 10:08 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration