Feature Request: block all 3rd party requests to untrusted

Bug reports and enhancement requests
Post Reply
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Feature Request: block all 3rd party requests to untrusted

Post by al_9x »

Giorgio,

I asked about this on the old forum but I don't think you responded, what do you think? If a domain is untrusted there is no reason to give them anything or get and parse anything from them. A harsher setting could even block all 3rd party requests that haven't been white listed. I would try that mode, but for untrusted there is no question.

IE8 made some steps towards 3rd party blocking (inprivate filtering), noscript already (I think) has the infrastructure to do it better.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Feature Request: block all 3rd party requests to untrusted

Post by Giorgio Maone »

Put in my TODO list, thanks for the suggestion.
Actually the only thing missing in document, image and stylesheet blocking, because plugin and frame blocking is automatically applied to untrusted sites independently from the other settings.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)
User avatar
therube
Ambassador
Posts: 7929
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Feature Request: block all 3rd party requests to untrusted

Post by therube »

So would something like this only apply to sites specifically "untrusted" or would it apply to any site not Allowed (i.e., default deny).

If the former, then that may present the case for a "blacklist", but then you are creating, maintaining such a list, which then ends up being a never ending process. (Unless there were a specific, relatively small set of sites you wish to block in that method.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090403 SeaMonkey/1.1.16
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Feature Request: block all 3rd party requests to untrusted

Post by Giorgio Maone »

therube wrote:So would something like this only apply to sites specifically "untrusted" or would it apply to any site not Allowed (i.e., default deny).
Only untrusted, obviously. We're talking about blocking the whole document, doing it by default defeats NoScript's purpose.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Feature Request: block all 3rd party requests to untrusted

Post by al_9x »

Giorgio Maone wrote:
therube wrote:So would something like this only apply to sites specifically "untrusted" or would it apply to any site not Allowed (i.e., default deny).
Only untrusted, obviously. We're talking about blocking the whole document, doing it by default defeats NoScript's purpose.
What do you mean by "blocking the whole document?" The whole document would not be blocked if you block 3rd party requests to non white listed domains. It would break many sites that rely on 3rd party content for basic operation, but that can be resolved by white listing. So it obviously shouldn't be the default, but it would be a useful optional enhanced privacy and security feature. When turned on, it would by default (without having to compose and maintain a blacklist), prevent informing 3rd parties about your browsing and prevent the parsing/rendering of 3rd party content, minimizing the attack surface area.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Feature Request: block all 3rd party requests to untrusted

Post by Giorgio Maone »

@al9_x
Maybe I did not understand your proposal.

Are we talking about blocking
  1. any request (including top document requests) toward untrusted (i.e. marked as untrusted, i.e. blacklisted) sites?
  2. any subrequest toward untrusted (i.e. marked as untrusted, i.e. blacklisted) sites?
  3. any subrequest toward unknown (i.e. non-whitelisted, forbidden by default) sites?
  4. something else?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729)
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Feature Request: block all 3rd party requests to untrusted

Post by al_9x »

Giorgio Maone wrote:@al9_x
Maybe I did not understand your proposal.

Are we talking about blocking
  1. any request (including top document requests) toward untrusted (i.e. marked as untrusted, i.e. blacklisted) sites?
  2. any subrequest toward untrusted (i.e. marked as untrusted, i.e. blacklisted) sites?
  3. any subrequest toward unknown (i.e. non-whitelisted, forbidden by default) sites?
  4. something else?
I guess I should define the terms for clarity. Any user initiated root (top document) request is "1st party root". Any resulting auto-generated sub-request to the same (optionally 2nd level) domain is "1st party sub". Any resulting auto-generated sub-request to a different (optionally 2nd level) domain is 3rd party. 3rd party implies sub-request.

1st party root requests can be further differentiated, we could call it "explicit 1st party root" when the user knows the destination (urlbar, bookmark, plain link) and "implicit 1st party root" when the destination is obscured by html/css/js

  1. explicit 1st party roots to untrusted (and resulting 1st party subs) should not be blocked. implicit 1st party roots to untrusted, maybe, optionally, if they can be differentiated from explicit.
  2. yes, this is what I called 3rd party to untrusted, but I suppose because of 2nd level domain matching you can also have a "1st party sub" to an untrusted sub-domain. This case is a no-brainer and should probably be the default.
  3. not any, only 3rd party, my previous post was about this case. There is no point in blocking "1st party subs" to non white listed, and if you did, every non white listed site would be broken
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3365
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Feature Request: block all 3rd party requests to untrusted

Post by GµårÐïåñ »

Maybe I am misunderstanding this but isn't this function already built into NoScript? Surely it is :!:
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 NoScript/1.9.1.7 FlashGot/1.1.8.5 FirePHP/0.2.4
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: Feature Request: block all 3rd party requests to untrusted

Post by al_9x »

GµårÐïåñ wrote:Maybe I am misunderstanding this but isn't this function already built into NoScript? Surely it is :!:
If you are referring to the blocking of ALL 3rd party requests to untrusted or optionally unknown (non white-listed) domains, then no.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3365
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Feature Request: block all 3rd party requests to untrusted

Post by GµårÐïåñ »

I guess I am having trouble understanding it because NS by default blocks all sites until you whitelist it at which time it will allow anything associated with it (although you can continue to apply restrictions to trusted sites too) but anything marked untrusted is permanently/fully blocked and all links to it (again based on the restrictions established by the user). The only thing it doesn't do is block content such as pictures which can easily be supplemented using RequestPolicy or Adblock Plus.

The only thing that I wish was available and we could do is the ability to create mini or specific policies for each site that can mix allow/untrusted contents on a per site basis rather than globally allow or untrusted requiring temporary blocking/allowing. A feature that I believe is in the works already and in the meantime I am able to achieve using NS+RP+AP very effectively, although requires a bit more work.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 FirePHP/0.2.4
Post Reply