Additional domain restrictions for whitelist
Additional domain restrictions for whitelist
Hi
Can anybody say please, is there any way to make whitelist rules working only on certain domains?
For example, many sites are using googleapis scripts, directly from ajax.googleapis.com. Can i allow them (not temporary) only on somesite.com, keeping default state on all the rest of www?
I didn't found such info in faq and forum search, please point if i'm wrong. Thanks and sorry for my English ;)
Can anybody say please, is there any way to make whitelist rules working only on certain domains?
For example, many sites are using googleapis scripts, directly from ajax.googleapis.com. Can i allow them (not temporary) only on somesite.com, keeping default state on all the rest of www?
I didn't found such info in faq and forum search, please point if i'm wrong. Thanks and sorry for my English ;)
Last edited by Tom T. on Tue Dec 29, 2009 2:09 am, edited 2 times in total.
Reason: "closed" removed, as topic has been re-opened
Reason: "closed" removed, as topic has been re-opened
Mozilla/5.0 (X11; U; Linux x86_64; uk; rv:1.9.1.6) Gecko/20091216 Fedora/3.5.6-1.fc11 Firefox/3.5.6
Re: Additional domain restrictions for whitelist
This feature is anticipated in the next-generation NoScript, 2.x, and is discussed extensively in the long-running thread, Site-Specific Permissions. There is not yet an estimated release date, but we're all very eager to see it.
And I had no trouble understanding your post. Your English was fine.
And I had no trouble understanding your post. Your English was fine.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
Re: Additional domain restrictions for whitelist
Thank you! Will wait for v.2, then ;)
Mozilla/5.0 (X11; U; Linux x86_64; uk; rv:1.9.1.6) Gecko/20091216 Fedora/3.5.6-1.fc12 Firefox/3.5.6
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: [CLOSED] Additional domain restrictions for whitelist
You can already do it by using ABE.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Re: [CLOSED] Additional domain restrictions for whitelist
Giorgio Maone
Really, thanks, seems like working. Only bad thing is lacking any visual indication of ABE's rules work (notification ticks for scripts and ABE are on). So it is hard (impossible?) to understand are scripts really blocked or not, if they aren't display something on page.
Really, thanks, seems like working. Only bad thing is lacking any visual indication of ABE's rules work (notification ticks for scripts and ABE are on). So it is hard (impossible?) to understand are scripts really blocked or not, if they aren't display something on page.
Mozilla/5.0 (X11; U; Linux x86_64; uk; rv:1.9.1.6) Gecko/20091216 Fedora/3.5.6-1.fc12 Firefox/3.5.6
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: [CLOSED] Additional domain restrictions for whitelist
You can check Tools|Error Console for [ABE] lines.qux wrote:So it is hard (impossible?) to understand are scripts really blocked or not, if they aren't display something on page.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Re: [CLOSED] Additional domain restrictions for whitelist
Giorgio Maone
Hm, nothing similar there. Any option?
Noscript 1.9.9.27, other info in my UA string below.
Hm, nothing similar there. Any option?
Noscript 1.9.9.27, other info in my UA string below.
Mozilla/5.0 (X11; U; Linux x86_64; uk; rv:1.9.1.6) Gecko/20091216 Fedora/3.5.6-1.fc12 Firefox/3.5.6
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: [CLOSED] Additional domain restrictions for whitelist
No option. If you added that rule, when you open http://www.foe.com you should get one or more "message" lines like this:qux wrote:Giorgio Maone
Hm, nothing similar there. Any option?
Code: Select all
[ABE] <google-analytics.com *.google-analytics.com> Deny on {GET http://www.google-analytics.com/urchin.js <<< http://www.foe.com/, http://www.foe.com/}
USER rule:
Site google-analytics.com *.google-analytics.com
Accept from friend.com *.friend.com friend2.com *.friend2.com
Deny
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Re: [CLOSED] Additional domain restrictions for whitelist
Giorgio Maone
This messages don't present in my case. Rule:Added to USER ruleset, then to both, for testing - same result. No ABE messages in console, both on allowed site and blocked one. Have only some html parser warnings there.
Rules are working all this time, i checked this.
This messages don't present in my case. Rule:
Code: Select all
Site ajax.googleapis.com *.ajax.googleapis.com
Accept from ogo.in.ua *.ogo.in.ua
Deny
Rules are working all this time, i checked this.
Mozilla/5.0 (X11; U; Linux x86_64; uk; rv:1.9.1.6) Gecko/20091216 Fedora/3.5.6-1.fc12 Firefox/3.5.6
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: [CLOSED] Additional domain restrictions for whitelist
Please try to edit (or create) the javascript.options.showInConsole boolean about:config preference and set it to true, then restart your browser.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Re: [CLOSED] Additional domain restrictions for whitelist
Giorgio Maone
Done (it was default, false), but no result. Maybe FF in my distro was built with some uncommon options? Here is info from about:buildconfig
[/size]Or some other options in about:config? I'll try to reproduce this on clean profile tomorrow.
Done (it was default, false), but no result. Maybe FF in my distro was built with some uncommon options? Here is info from about:buildconfig
Code: Select all
Build platform
target
x86_64-unknown-linux-gnu
Build tools
Compiler Version Compiler flags
gcc gcc version 4.4.2 20091027 (Red Hat 4.4.2-7) (GCC) -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -Wno-long-long -pedantic -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions
c++ gcc version 4.4.2 20091027 (Red Hat 4.4.2-7) (GCC) -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions
Configure arguments
--enable-application=xulrunner --prefix=/usr --libdir=/usr/lib64 --with-system-nspr --with-system-nss --with-system-jpeg --with-system-zlib --with-system-bz2 --enable-system-hunspell --enable-system-sqlite --enable-system-cairo --with-pthreads --disable-strip --disable-tests --disable-mochitest --disable-installer --disable-debug --enable-optimize --enable-default-toolkit=cairo-gtk2 --enable-pango --enable-svg --enable-canvas --disable-javaxpcom --disable-crashreporter --enable-safe-browsing --enable-extensions=default,python/xpcom --enable-libnotify
Mozilla/5.0 (X11; U; Linux x86_64; uk; rv:1.9.1.6) Gecko/20091216 Fedora/3.5.6-1.fc12 Firefox/3.5.6
Re: [CLOSED] Additional domain restrictions for whitelist
@ Giorgio: Thanks for adding that FAQ. I'm sorry that I missed its publication. It will come in very handy in answering questions like this in the future, and will be a nice bridge to site-specific permissions.
Question: Can it work for objects as well as scripts? Here is what I tried: (USER)
Site java-vm@*.* *java-vm@*.*
Accept from hushmail.com *.hushmail.com
Deny
As you can see, I would like to allow Java applets at Hushmail and nowhere else. I allowed Java in NS > Embeddings as per the above.
It doesn't work. Java applets were still loading from other sites tested (using Java's own test page as the best tester).
ABE would not allow <APPLET> or comma to be entered, even though the objects show as <APPLET>, java-vm@http.//www.somesite.com
Is this syntax wrong, or is this not possible to do?
As you know, GµårÐïåñ' was intending to write an ABE User Guide with your assistance, of which I was awaiting the privilege of copy-editing at his request, but unfortunately, he has been otherwise occupied.
Side note for all uses of Sandboxie and similar: The rule entry didn't survive the emptying of the sandbox. I realized that my currently-allowed file paths through the sandbox (bookmarks, NS prefs, etc.) aren't enough. Either edit directly in (profile) > ABE > rules > User.abe, or open a sandboxie file path to there in its configuration file.
Question: Can it work for objects as well as scripts? Here is what I tried: (USER)
Site java-vm@*.* *java-vm@*.*
Accept from hushmail.com *.hushmail.com
Deny
As you can see, I would like to allow Java applets at Hushmail and nowhere else. I allowed Java in NS > Embeddings as per the above.
It doesn't work. Java applets were still loading from other sites tested (using Java's own test page as the best tester).
ABE would not allow <APPLET> or comma to be entered, even though the objects show as <APPLET>, java-vm@http.//www.somesite.com
Is this syntax wrong, or is this not possible to do?
As you know, GµårÐïåñ' was intending to write an ABE User Guide with your assistance, of which I was awaiting the privilege of copy-editing at his request, but unfortunately, he has been otherwise occupied.
Side note for all uses of Sandboxie and similar: The rule entry didn't survive the emptying of the sandbox. I realized that my currently-allowed file paths through the sandbox (bookmarks, NS prefs, etc.) aren't enough. Either edit directly in (profile) > ABE > rules > User.abe, or open a sandboxie file path to there in its configuration file.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
-
- Ambassador
- Posts: 1586
- Joined: Fri Mar 20, 2009 4:47 am
- Location: Colorado, USA
Re: [CLOSED] Additional domain restrictions for whitelist
I see the messages Giorgio predicts.qux wrote:Giorgio Maone
This messages don't present in my case. Rule:Added to USER ruleset, then to both, for testing - same result. No ABE messages in console, both on allowed site and blocked one. Have only some html parser warnings there.Code: Select all
Site ajax.googleapis.com *.ajax.googleapis.com Accept from ogo.in.ua *.ogo.in.ua Deny
Rules are working all this time, i checked this.
Did you whitelist ajax.googleapis.com? You need to do that. In addition to the NoScript 1.9.9.29 default settings, I whitelisted ajax.googleapis.com and ogo.in.ua and added qux's USER rule to ABE.
On http://ogo.in.ua/forums/, I don't get the ABE "Deny" message because ABE allows it, but if I remove
Code: Select all
Accept from ogo.in.ua *.ogo.in.ua
Code: Select all
[ABE] <ajax.googleapis.com *.ajax.googleapis.com> Deny on {GET http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js <<< http://ogo.in.ua/forums/, http://ogo.in.ua/forums/}
USER rule:
Site ajax.googleapis.com *.ajax.googleapis.com
Deny
[ABE] <ajax.googleapis.com *.ajax.googleapis.com> Deny on {GET http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js <<< http://ogo.in.ua/forums/, http://ogo.in.ua/forums/}
USER rule:
Site ajax.googleapis.com *.ajax.googleapis.com
Deny
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6
Re: Additional domain restrictions for whitelist
Yes, i read this in faq, and already said ABE rules work correctly - only without indication.Alan Baxter wrote:Did you whitelist ajax.googleapis.com? You need to do that.
But i found what's the point. To see ABE's "deny" message you must allow main (viewed) site with Noscript, not only googleapis.com in my case, and i didn't understand this at once :) Javascript.options.showInConsole option can be default, "false". Now it seems enough for me, thanks ;)
Mozilla/5.0 (X11; U; Linux x86_64; uk; rv:1.9.1.6) Gecko/20091216 Fedora/3.5.6-1.fc12 Firefox/3.5.6
-
- Ambassador
- Posts: 1586
- Joined: Fri Mar 20, 2009 4:47 am
- Location: Colorado, USA
Re: Additional domain restrictions for whitelist
You're welcome.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6