How to disable scripts in local files from being executed ?

Ask for help about NoScript, no registration needed to post
osef75
Posts: 2
Joined: Sat Jan 04, 2014 7:58 pm

How to disable scripts in local files from being executed ?

Post 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>
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

barbaz
Senior Member
Posts: 9144
Joined: Sat Aug 03, 2013 5:45 pm

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

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

It's a WebExtensions limitation. Nothing NoScript can do.
*Always* check the changelogs BEFORE updating that important software!
-

osef75
Posts: 2
Joined: Sat Jan 04, 2014 7:58 pm

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

Post 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 :( :( :(
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

Post Reply