The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniWeb > OmniWeb General
FAQ Members List Calendar Today's Posts

 
Flash blocking on Lynda.com Thread Tools Search this Thread Display Modes
I have used the suggested technique to block flash files -- placing /.swf$ in the blocked URL list. However, when I load www.lynda.com there is a flash file that continues to play (actually there are two, but only one is annoying). Does anyone else get this same behavior and is there any way to stop it?

BTW, Flashblock on Firefox handles them appropriately.

Thanks,
Greg
 
I put /.swf instead of /.swf$ in the blocked URL list and everything worked fine.

gwk
 
adding the '$' at the end says "only match this if it's at the end of a line. Without the $ it will match anywhere in the line.
 
/.swf will not block so much, with $ at the end or without: The . will matach any character, but the / will only match /. So this line will only block URLs that contain strings like '/aswf' or '/Xswf', which aren't very widespread. ;-)

If you want to block flash, the best thing will be to look for URLs with 'swf' at the end of the line. The corresponding line would be:

swf$

What you have seen is probably the hint to use the line

/.*swf$

or similar to block flash. This means: A /, then any character (.), zero or multiple times (*), then 'swf' at the end of the line ($). As slashes tend to occur in about any URL (at least twice at the end of 'http://'), this works, too, but it is unnecessarily complicated. I don't know why many people seem to use the slash at the beginning—probably because we're used to using slashes with regular expressions (in many programming languages, regular expressions are encircled with slashes).

If you want to know more about ad blocking with regular expressions, you might want to read this: http://forums.omnigroup.com/showthread.php?t=2036
 
Oops, I missed that a "/" is getting used instead of "\". The example provided in help is "\.swf$". The backwards slash prevents the next character from doing anything special so a period matches just a period. Not any character. All this makes the expression match .swf at the end of a line.

If i block flash, personally I just use "swf" without the quotes. This grabs pretty much all flash regardless of whether the match shows up in the middle of the line or the end and doesn't look for the preceding period which is usually there but not always.
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
OmniFocus courses/training now available on Lynda.com Brian OmniFocus 1 for Mac 4 2010-06-19 02:55 AM
Unable to enter text in Flash applets after blocking them bmastenbrook OmniWeb Bug Reports 2 2009-03-20 02:08 PM
Blocking Macromedia flash based ads Mila OmniWeb General 5 2006-09-25 02:33 AM
sp14: no longer blocks flash content in ad blocking xarix OmniWeb Bug Reports 17 2006-06-26 02:28 PM
Easier Flash blocking SSteve OmniWeb Feature Requests 1 2006-04-28 07:30 AM


All times are GMT -8. The time now is 02:20 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.