Additional domain restrictions for whitelist

Ask for help about NoScript, no registration needed to post
User avatar
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

Post by Giorgio Maone »

Tom T. wrote: 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?
It's not possible. ABE just knows about HTTP requests in their early stage, i.e. origin URL, destination URL and HTTP method (GET, POST, PUT, DELETE...).
The content-type (e.g. application/java-vm) is specified in the response, too late for ABE. In fact, the some-type@url/pattern syntax you're using has no meaning to 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)
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: [CLOSED] Additional domain restrictions for whitelist

Post by Tom T. »

Giorgio Maone wrote:
Tom T. wrote: 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
<snip>
Is this syntax wrong, or is this not possible to do? <snip>
It's not possible. ABE just knows about HTTP requests in their early stage, i.e. origin URL, destination URL and HTTP method (GET, POST, PUT, DELETE...).
The content-type (e.g. application/java-vm) is specified in the response, too late for ABE. In fact, the some-type@url/pattern syntax you're using has no meaning to ABE.
Thank you.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
Post Reply