Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Any trick to block sound in ads?

12:38 pm on Jan 16, 2012 (gmt 0)

5+ Year Member

I work with several ad companies (including AdSense). Every now and then, one of them will display an ad which starts playing a sound (although they are not supposed to do it).

All these ads are javascript - like AdSense.

Is there anything I can do to block the sound on my website / page? A magic script? A javascript? A line in the .htaccess file?
3:18 pm on Jan 16, 2012 (gmt 0)

I know I am going to get slapped for this... I can't resist.

Turn off the speakers.

4:38 pm on Jan 16, 2012 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

This is a tough one to research - everything I turn up is advice for the end user. There is a complaint thread on Google's own forums about the issue with Adsense, but so far the only advice there is to go to text ads only... not exactly a solution.

I learned that there is an actionscript method called stopallsounds() - but that would need to be embedded in the Flash file itself. Since the files are supplied by a third party, that's a no go - and not all sound ads are going to be Flash at any rate.

Right now, I assume that the responsibility falls on the third party - the ad network itself. It seems like there ought to be something you can do on your server, too, but I can't find it. Hope someone else can turn it up for you.

I'm moving this thread to the JavaScript forum where someone with the specific knowledge you need has a better chance of seeing your question.
8:23 pm on Jan 16, 2012 (gmt 0)

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

Intrigued, (I'm not a java kind of guy) the question was interesting enough I took a look. Obviously there are ways to MAKE sound: [javascripter.net...] for example.
Which makes me think one might parse incoming script and delete/remove those sound calls... but as I said, I'm not a js guy (with one exception "frame busting") so others will have to test it out.