[Solved] Allow scripts on hostname not working

Ask for help about NoScript, no registration needed to post
gewe
Posts: 2
Joined: Sun May 07, 2017 12:16 pm

[Solved] Allow scripts on hostname not working

Post by gewe »

Hello,

I am using NoScript version 5.0.4rc2 on Firefox 53.0 on Linux Mint 18.1, 64 bit.

In my local network I have a Raspberry Pi, running a webserver. I can access the Pi with the domain name pi1, in an URL like http://pi1:88/index.html.
That page contains scripts, which are blocked by NoScript. I then select "Allow http://pi1" from the menu, but the scipts are still blocked. There are no scripts from other domains in the web page, and the NoScript menu does not show other domains to be permanently or temporarily allowed.
I then removed http://pi1 from the list of allowed sites, and manually added pi1 to the list. The scripts are still blocked.
Using the IP-address instead of the hostname, and adding the IP-address to the allowd list also doesn't work.
The only way to get the page to load with scripts, is to set NoScript to allow all scripts, making the use of NoScript useless.

How can I enable the scripts based on a hostname?

Regards,
Ge
Last edited by gewe on Sun May 07, 2017 5:12 pm, edited 1 time in total.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
barbaz
Senior Member
Posts: 11140
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow scripts on hostname not working

Post by barbaz »

I think you need to include the port. Try manually adding this in NoScript Options > Whitelist

Code: Select all

http://pi1:88
IIRC there was a discussion about menu entries missing the port a while back, I'll try to dig it up later.

EDIT
I think it was this - viewtopic.php?f=7&t=22392
*Always* check the changelogs BEFORE updating that important software!
-
gewe
Posts: 2
Joined: Sun May 07, 2017 12:16 pm

Re: Allow scripts on hostname not working

Post by gewe »

Why didn't I think of that? :oops:

Great that some problems can be solved so easily. Many thanks!

Regards,
Ge
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
barbaz
Senior Member
Posts: 11140
Joined: Sat Aug 03, 2013 5:45 pm

Re: [Solved] Allow scripts on hostname not working

Post by barbaz »

You're welcome! Image
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply