Is There a Generic .swf/ads filter?

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
Paulfox

Is There a Generic .swf/ads filter?

Post by Paulfox »

I'm interested in a generic regex for "general flash banners," above and beyond blocking ad agencies/sources. Would something like

/(\.ad|banner)s/\.swf/

work?
Thanks in advance!
salai
Posts: 4
Joined: Wed Jun 14, 2006 11:01 am
Location: Finland

Post by salai »

I dont know if this suits you, but I use following system:

@@http://www.*saa*.swf
*.swf

First I block ALL flash and then whitelist .*saa*.swf (for finnish weather forecast maps) or some other pages, where I'd like to see them.
Guest

Post by Guest »

/[^saa]*.swf / :D
Wladimir Palant

Post by Wladimir Palant »

Guest, this is a wrong regexp - it is equivalent to /.swf/. [^...] is a negated character class, so you are looking there for characters that are neither s nor a. And because you use the quantifier * you don't even require such characters to be present. And finally the dot in .swf will match any character - you probably meant to write \.swf

Anyway, salai's solution is the correct one.
PWguy

Post by PWguy »

Or go the easy route and block all flash:

FlashBlock
https://addons.mozilla.org/firefox/433/

NoScript
https://addons.mozilla.org/firefox/722/


the latter has the option to block flash on those sites where JS is first blocked.
Locked