forbid file allows scripts?

Ask for help about NoScript, no registration needed to post
Noscript_fan

forbid file allows scripts?

Post by Noscript_fan »

Hello,

when I save
for example this website http://chess-results.com/tnr21457.aspx? ... -1&wi=1000
to a file and then open the file in another tab, the animated ad gifs are gone.
"Scripts partially allowed, 1/2 (file://) | <Script>: 5 | <Object>: 0"
Then I choose from the Options button on the right "Forbid file". The info text is updated
"Scripts currently forbidden | <Script>: 3 | <Object>: 0"
But now the animated ads are visible on top and right sides. Is this a bug, or have I misunderstood something?

Thanks for a great product!
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
User avatar
therube
Ambassador
Posts: 7929
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: forbid file allows scripts?

Post by therube »

This same sort of thing just came up recently, let me see ...
(Didn't find the thread I was looking for, but ...)

Code: Select all

<!-- Start of Ad'LINK ADJ Tag for AdFRONT - CHESSRESULTS.COM-DE-TURNIER-MBR-T SIZE : 468x60,728x90 -->
<script>
if(typeof(adlink_randomnumber)=="undefined"){var adlink_randomnumber=Math.floor(Math.random()*10000000000)}
if(typeof(WLRCMD)=="undefined"){var WLRCMD=""}
if(typeof(adlink_tile)=="undefined"){var adlink_tile=1}else{adlink_tile++}
 document.write('<scr'+'ipt language="JavaScript" src="http://ad.at.doubleclick.net/adj/chessresults.com/DE_TURNIER_MBR_T_1x1;'+WLRCMD+';sz=468x60,728x90;tile='+adlink_tile+';ord='+adlink_randomnumber+'?"><\/scr'+'ipt>');
</script>
<noscript>
<a href="http://ad.at.doubleclick.net/jump/chessresults.com/DE_TURNIER_MBR_T_1x1;sz=468x60,728x90;Tile=2;ord=1234567890?" target="_blank">
<img src="http://ad.at.doubleclick.net/ad/chessresults.com/DE_TURNIER_MBR_T_1x1;sz=468x60,728x90;Tile=2;ord=1234567890?" border="0">
</a></noscript>
<!-- End of Ad'LINK ADJ Tag for AdFRONT - CHESSRESULTS.COM-DE-TURNIER-MBR-T SIZE : 468x60,728x90 -->
So, if chess-results.com is Allowed, the site uses JavaScript to display the ad, but NoScript (by default) is blocking doubleclick.net, so the ads do not show.

If chess-results.com is not allowed, JavaScript is not used, instead the items within the <noscript> tags runs, which does then show the ads.

(Note you may need to manually refresh the page when toggling back & forth between Allowed & not.)

hmm. Not sure if what I just said is correct or not. (Someone will set me straight if not.)

Maybe it is more that the JavaScript version of doubleclick.net then uses JavaScript itself, & it is actually that which is blocked by virtue of doubleclick.net not being allowed.

Note that once you Allow doubleclick.net (& then manually refresh the page) the doubleclick.net ads are then actually served via 2mdn.net.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090403 SeaMonkey/1.1.16
Nan M
Ambassador
Posts: 102
Joined: Thu Mar 19, 2009 12:44 pm

Re: forbid file allows scripts?

Post by Nan M »

It resembles a discussion about frames for recaptcha needing explicit recaptcha permission that I wish I had time to find right now. I think it may have been in a nagan discussion and I don't think Giorgio contributed an answer.
Got to go.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10
Noscript_fan

Re: forbid file allows scripts?

Post by Noscript_fan »

Thanks for the replies. I noticed that I have also in Firefox options checked "Load images automatically" and in the exceptions I have three sites, ad.at.doubleclick.net, ad.yieldmanager.com, adserving.cpxinteractive set with status "Blocked". These are the sites where the animated gifs come from, I guess. Still they are not blocked.

I don't know if there is something wrong with Noscript or Firefox or my settings.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
User avatar
therube
Ambassador
Posts: 7929
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: forbid file allows scripts?

Post by therube »

I just tried ad.at.doubleclick.net & it worked fine for me.
Add it as a block, force refreshed the page, & it no longer showed.

?

Note that if you happened to have doubleclick.net Allowed, you would be served a Flash ad that (starts out) from m1.emea.2mdn.net.

As a test, create a new Profile, add ad.at.doubleclick.net as a block & see what happens.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090403 SeaMonkey/1.1.16
Guest

Re: forbid file allows scripts?

Post by Guest »

I have ad.at.doubleclick.net as blocked in firefox tools, options, tools, load images automatically, exceptions.

When I open the page in firefox, no ads are shown whether I allow or forbid scripts. That seems to work right.

When I save the page in a file and open the file in another tab, the behaviour is different. When I choose "forbid file" from
noscript options, the ads are shown, even though the ad website is still blocked.

Shouldn't the behaviour be the same whether I open a web site or a file? It's not really a big problem, but I wouldn't like to see the ads even offline.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
User avatar
therube
Ambassador
Posts: 7929
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: forbid file allows scripts?

Post by therube »

Now that's interesting.

And there's more too.
If you saved the page with 'Web Page, HTML only' (rather then 'Web Page, complete') then the ads are blocked.

When you saved the page (Web Page, complete) the ads are stored & being served locally (from file://). Suppose that the Image Manager is not affecting file:// ?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090403 SeaMonkey/1.1.16
Post Reply