How to determine which functionality is on which domain?

Ask for help about NoScript, no registration needed to post
Hero
Posts: 8
Joined: Sat Feb 22, 2014 11:25 pm

How to determine which functionality is on which domain?

Post by Hero »

Hi

I am relatively new to NoScript. Is there something basic I am missing?
When I am using a website that draws scripts from 5 or 10 or more domains, how can I determine which domains I need to allow for specific functions to work?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: How to determine which functionality is on which domain?

Post by Thrawn »

Well, you can either examine the source code of the page and the scripts that it's trying to run, or you can use trial and error...unfortunately there's not much that NoScript can do about that.

However, by middle-clicking on the menu entries, you can get information about the sites from Web of Trust and similar services, so you can get an idea of how trustworthy they might be.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:27.0) Gecko/20100101 Firefox/27.0
Hero
Posts: 8
Joined: Sat Feb 22, 2014 11:25 pm

Re: How to determine which functionality is on which domain?

Post by Hero »

Thrawn wrote:Well, you can either examine the source code of the page and the scripts that it's trying to run, or you can use trial and error...unfortunately there's not much that NoScript can do about that.
But when I right-click on an element, for instance a 'send-button', and choose 'inspect element', then I get a half-screen-window, where I can see the HTML-element, but there is no information about which domain that contains the js-code for that element - the send-button...?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: How to determine which functionality is on which domain?

Post by Thrawn »

I'm afraid you'll have to find all of the <script> elements in the page, manually download each of them, and hunt for JavaScript that refers to your Send button (hopefully using its ID, which will be easy enough to find).

Sorry, but this is what happens when web pages are built using a language that is not only Turing-complete but also interpreted and both object-oriented and function-oriented.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:27.0) Gecko/20100101 Firefox/27.0
Hero
Posts: 8
Joined: Sat Feb 22, 2014 11:25 pm

Re: How to determine which functionality is on which domain?

Post by Hero »

Thrawn wrote:I'm afraid you'll have to find all of the <script> elements in the page, manually download each of them, and hunt for JavaScript that refers to your Send button (hopefully using its ID, which will be easy enough to find).
It would be great, if that was a function in Noscript! Instead of me having to do it manually. :-)
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: How to determine which functionality is on which domain?

Post by Thrawn »

The JSView addon used to do this quite well, but unfortunately it appears to be dead.

You can try using the built-in Developer Tools, or Firebug if you need something extra.

However, regardless of the tool, you're looking at a tremendous amount of work. Per website.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:27.0) Gecko/20100101 Firefox/27.0
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: How to determine which functionality is on which domain?

Post by therube »

> JSView ... appears to be dead

Dead in what way?

Oh, they took it off AMO?

See if this works, 2.0.8-mod, http://xsidebar.mozdev.org/modifiedmisc.html#jsview.
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 NT 5.1; rv:27.0) Gecko/20100101 SeaMonkey/2.24
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to determine which functionality is on which domain?

Post by barbaz »

@therube, that mod of JSView is buggy, especially on Mac OS X. Philip Chee's changes exposed a bad bug resulting from sloppy coding in the original.
Even so, it does work partially, and it should run just as well on Fx as on SeaMonkey. Haven't touched any recent Fx versions though...
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:30.0) Gecko/20100101 Firefox/30.0 SeaMonkey/2.27a1
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: How to determine which functionality is on which domain?

Post by therube »

> that mod of JSView is buggy, especially on Mac OS X

In what way?


Oh, & this too, http://forums.mozillazine.org/viewtopic ... #p12683267
Source: http://forums.mozillazine.org/viewtopic ... #p12682115
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 NT 5.1; rv:27.0) Gecko/20100101 SeaMonkey/2.24
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to determine which functionality is on which domain?

Post by barbaz »

therube wrote:> that mod of JSView is buggy, especially on Mac OS X

In what way?
The worst bug is that almost *all* of the JS/CSS in the menu, when clicked, point you to http://undefined/ . (In Linux it's only about a third of them.)
I'd prefer not to continue hijacking this thread, so therube, if you want to talk about JSView more, send me a PM.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
Hero
Posts: 8
Joined: Sat Feb 22, 2014 11:25 pm

Re: How to determine which functionality is on which domain?

Post by Hero »

Hero wrote:When I am using a website that draws scripts from 5 or 10 or more domains, how can I determine which domains I need to allow for specific functions to work?
I think I have found the best possible solution to my problem:

I have installed Ghostery. These people have examined scripts from different domains and classified them accordingly. So I let Ghostery block scripts and I have disabled the whole script-blocking in NoScript. I have not fully deactivated NoScript, it still does things like XXS, ABE etc.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: How to determine which functionality is on which domain?

Post by Thrawn »

Hero wrote: I think I have found the best possible solution to my problem:

I have installed Ghostery. These people have examined scripts from different domains and classified them accordingly.
That depends on what you consider to be the problem.

I would definitely not recommend Ghostery for the job of keeping you safe on the internet. It is for protecting your privacy, not security. And it has a history of not playing nicely with others.

Blacklists work OK for privacy, because the corporations that will want to track you are generally big, and therefore known. If someone set up their own personal tracking domain that no-one else knows about, then they wouldn't be collecting enough information for it to be a concern. But when it comes to security, all sites are equally capable of attacking you. An attacker just has to register a new domain that isn't on the lists, and they can hit everyone who comes to that domain until they get found by the blacklist maintainers. Then they register another domain. Or another few thousand domains.

If you really want a blacklist-based approach to security, where you rely on someone else to keep track of every bad site on the whole internet, then at least do yourself a favor and use Adblock Plus with the Anti-Malware subscription. It is at least designed for the job, which Ghostery is not.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0
Hero
Posts: 8
Joined: Sat Feb 22, 2014 11:25 pm

Re: How to determine which functionality is on which domain?

Post by Hero »

Thrawn wrote:
Hero wrote: I think I have found the best possible solution to my problem:

I have installed Ghostery. These people have examined scripts from different domains and classified them accordingly.
That depends on what you consider to be the problem.

I would definitely not recommend Ghostery for the job of keeping you safe on the internet. It is for protecting your privacy, not security. And it has a history of not playing nicely with others.

Blacklists work OK for privacy, because the corporations that will want to track you are generally big, and therefore known. If someone set up their own personal tracking domain that no-one else knows about, then they wouldn't be collecting enough information for it to be a concern. But when it comes to security, all sites are equally capable of attacking you. An attacker just has to register a new domain that isn't on the lists, and they can hit everyone who comes to that domain until they get found by the blacklist maintainers. Then they register another domain. Or another few thousand domains.
My experience is that important parts of lots of websites depend on JS, so I can't just block all JS.
NoScript doesn't give me a way of knowing which features on a website depend on which script(-domains), so it's not REALLY useful.
Thrawn wrote:If you really want a blacklist-based approach to security, where you rely on someone else to keep track of every bad site on the whole internet, then at least do yourself a favor and use Adblock Plus with the Anti-Malware subscription. It is at least designed for the job, which Ghostery is not.
I do have Adblock Plus installed - just using the EasyList-filter. But I can't find a filter called Anti-Malware. Can you tell me how to find that, please?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 11163
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to determine which functionality is on which domain?

Post by barbaz »

Hero wrote:I do have Adblock Plus installed - just using the EasyList-filter. But I can't find a filter called Anti-Malware. Can you tell me how to find that, please?
https://adblockplus.org/en/subscriptions
scroll all the way down to "Malware Domains"
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20140330 Firefox/31.0 SeaMonkey/2.28a1
Hero
Posts: 8
Joined: Sat Feb 22, 2014 11:25 pm

Re: How to determine which functionality is on which domain?

Post by Hero »

barbaz wrote:
Hero wrote:I do have Adblock Plus installed - just using the EasyList-filter. But I can't find a filter called Anti-Malware. Can you tell me how to find that, please?
https://adblockplus.org/en/subscriptions
scroll all the way down to "Malware Domains"
Thank you very much!! Hereby installed.
So now Ghostery is disabled, NoScript only does XXS, ABE and such and 2 AdBlock filters does 'the rest'. It doesn't feel 100% optimal for both privacy and security, but it's hell manually trying to figure out which JS-domains I need on each website and which are just spying on/tracking me...!?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Post Reply