How to disable scripts in local files from being executed ?

Post a reply

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: How to disable scripts in local files from being executed ?

Re: How to disable scripts in local files from being execute

by osef75 » Wed Feb 14, 2018 8:24 pm

Damned.
Well, thank you very much for the reply Barbaz. Even if it's not what I hoped :( :( :(

Re: How to disable scripts in local files from being execute

by barbaz » Mon Feb 12, 2018 4:08 am

It's a WebExtensions limitation. Nothing NoScript can do.

How to disable scripts in local files from being executed ?

by osef75 » Mon Feb 12, 2018 3:25 am

Hello everyone,

I'm quite disappointed.
Today, I've just saved a page from an unstrusted site on my computer, then I opened that local page, and NoScript didn't seem to block it (I say "seem" cause it was weird, I had the icon showing the main domain name trusted only).
Anyway I created a basic html page with a JavaScript script locally, then I opened it with FireFox, the address was "file:///home/bob/bla.html" and the script worked. No blocking by default.

NB: I've reseted NoScript to default before
And I'm up to date: Firefox 58.0.1 and NoScript Version 10.1.6.5

I've searched on the forum, and the only thread I found was this one : https://forums.informaction.com/viewtop ... iles#p7392
And we can read that, in previous version of FF and NoScript we could block script from local files (i.e "file://")

Would it be possible to put again this function please ? :-)
Or am I missing something ?

Thank you very much for you help.

if it can help, here is the code of my local web page:

Code: Select all

<!DOCTYPE html>
<html>
  <head>
    <script>
      function myFunction() {
      document.getElementById("demo").innerHTML = "Paragraph changed.";
      }
    </script>
  </head>

  <body>

    <h1>A Web Page</h1>
    <p id="demo">A Paragraph</p>
    <button type="button" onclick="myFunction()">Try it</button>

  </body>
</html>

Top