Newbie ABE help
Newbie ABE help
I have never used ABE before and do not have knowledge in this area in general. I am interested in using ABE to limit whitelisted sites so that their scripts are only run on their domain. This is something one can do with ABE (ultimately I wish NoScript offered a quick means to do so in addition to the temporarily allow and always allow options - say an always allow on this site only)?
For example, I'd like to always allow msn.com but only on their site. I added the following under ABE -> User
Site .msn.com
Accept from .msn.com
Deny INCLUSION(SCRIPT, OBJ, SUBDOC)
Then I visited http://hardballtalk.nbcsports.com but see that the msn.com script shows as being allowed on that page. Is my custom ABE rule working correctly in that the msn.com script is being blocked on that site, and others other than msn.com, and it just doesn't say so or am I doing, or expecting, something wrong?
For example, I'd like to always allow msn.com but only on their site. I added the following under ABE -> User
Site .msn.com
Accept from .msn.com
Deny INCLUSION(SCRIPT, OBJ, SUBDOC)
Then I visited http://hardballtalk.nbcsports.com but see that the msn.com script shows as being allowed on that page. Is my custom ABE rule working correctly in that the msn.com script is being blocked on that site, and others other than msn.com, and it just doesn't say so or am I doing, or expecting, something wrong?
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Re: Newbie ABE help
That could be expected behavior as ABE works independently of NS permissions.
One comment on your rule though: it doesn't quite simulate a NoScript forbid despite what the FAQ says. You could get closer if you try
(block all 3rd-party msn active content that NoScript would control)
But I should still say what you had was very well done for a total noob and would work in most cases.
I also have a related question to Guest: would
sandbox msn.com inclusions within msn.com iframes on a 3rd-party site? If so, that really would simulate NS forbidding the site...
One comment on your rule though: it doesn't quite simulate a NoScript forbid despite what the FAQ says. You could get closer if you try
Code: Select all
Site .msn.com
Accept from .msn.com
Deny INCLUSION(SCRIPT, OBJ, SUBDOC, FONT, XHR)
But I should still say what you had was very well done for a total noob and would work in most cases.

I also have a related question to Guest: would
Code: Select all
Site .msn.com
Accept from SELF++
Sandbox INCLUSION
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22
Re: Newbie ABE help
Thanks barbaz.barbaz wrote:That could be expected behavior as ABE works independently of NS permissions.
One comment on your rule though: it doesn't quite simulate a NoScript forbid despite what the FAQ says. You could get closer if you try(block all 3rd-party msn active content that NoScript would control)Code: Select all
Site .msn.com Accept from .msn.com Deny INCLUSION(SCRIPT, OBJ, SUBDOC, FONT, XHR)
But I should still say what you had was very well done for a total noob and would work in most cases.
I copied and pasted the first rule you shared but it seemed to have the same result using that site as a test. Does that mean I am doing something wrong or that the drop down menu on the NoScript icon will show msn.com allowed on that site no matter the ABE rule? Meaning, other than my knowing I created a rule for that site, I will not have any way of verifying it is working as intended.
Or perhaps it is something as simple as my pasting it under the "# User-defined rules. Feel free to experiment here." text that is already present there when I am supposed to replace it (rather than under it but leaving that text as is)?
Re: This part..
This is over my head so I am not sure what it means in order to offer a reply.I also have a related question to Guest: wouldsandbox msn.com inclusions within msn.com iframes on a 3rd-party site? If so, that really would simulate NS forbidding the site...Code: Select all
Site .msn.com Accept from SELF++ Sandbox INCLUSION
Should I copy and paste that rule to try over the other? If so, could you explain it a little so that I may try and learn how I may mimic that rule for other sites I would like to create a rule for in this same manner (eg. google.com)?
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Re: Newbie ABE help
As I said NoScript permissions work independently of ABE, so it just depends what gets to a site first: script-blocking may catch the site and allow it, but then ABE could catch it afterwards and block it.Guest wrote:I copied and pasted the first rule you shared but it seemed to have the same result using that site as a test. Does that mean I am doing something wrong or that the drop down menu on the NoScript icon will show msn.com allowed on that site no matter the ABE rule? Meaning, other than my knowing I created a rule for that site, I will not have any way of verifying it is working as intended.
You can verify whether it's working by checking the Browser Console (Ctrl-Shift-J) and looking for things that start with [ABE], and see what they say.
That was a question for people who know more than me since I don't fully understand the extra restrictions applied when replacing .msn.com with SELF++. I only posted it here because depending on the answer that might achieve what you really want rather than work around the issue by outright blocking the inclusions.Guest wrote:Re: This part..
This is over my head so I am not sure what it means in order to offer a reply.I also have a related question to Guest: wouldsandbox msn.com inclusions within msn.com iframes on a 3rd-party site? If so, that really would simulate NS forbidding the site...Code: Select all
Site .msn.com Accept from SELF++ Sandbox INCLUSION
Should I copy and paste that rule to try over the other? If so, could you explain it a little so that I may try and learn how I may mimic that rule for other sites I would like to create a rule for in this same manner (eg. google.com)?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21
Re: Newbie ABE help
Using '.msn.com' will usually be the same as using 'SELF++'. There are some tricky exceptions when sites use redirects.
Giorgio could best answer questions about exactly what Sandbox does - but bear in mind that this feature is intended for protection from XSS etc, so it is less comprehensively tested for scenarios like this one.
@Guest: What exactly are you trying to stop msn.com from doing on other sites? If it's tracking you're worried about, then you're probably better off with Adblock Plus.
Giorgio could best answer questions about exactly what Sandbox does - but bear in mind that this feature is intended for protection from XSS etc, so it is less comprehensively tested for scenarios like this one.
@Guest: What exactly are you trying to stop msn.com from doing on other sites? If it's tracking you're worried about, then you're probably better off with Adblock Plus.
======
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.
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:24.0) Gecko/20100101 Firefox/24.0
Re: Newbie ABE help
Thanks for your reply Thrawn. And I can personally verify that Sandbox works well for some annoyance removal purposes also 

*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0 SeaMonkey/2.22
Re: Newbie ABE help
I don't understand enough to know exactly what happens behind the scenes so I do not have anything specific that I am attempting to block. More along the lines of seeing that the vast majority of times a script, to use the msn.com example, is listed as running on another site that it isn't necessary to that sites visit. I do use ABP but wanted to also play around with attempting to block a script like msn.com from running on other sites I may frequent.Thrawn wrote:@Guest: What exactly are you trying to stop msn.com from doing on other sites? If it's tracking you're worried about, then you're probably better off with Adblock Plus.
I will try barbaz's kind suggestion for a bit and mimic that wording for additional ones I'd like to try.
Code: Select all
Site .msn.com
Accept from .msn.com
Deny INCLUSION(SCRIPT, OBJ, SUBDOC, FONT, XHR)
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Re: Newbie ABE help
It doesn't matter, see http://noscript.net/abe/abe_rules.pdfGuest wrote:Do I place that group of text under "# User-defined rules. Feel free to experiment here." or replace it so that only the rules I create are entered there (in case it matters)?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21
Re: Newbie ABE help
Thanks.barbaz wrote:It doesn't matter, see http://noscript.net/abe/abe_rules.pdfGuest wrote:Do I place that group of text under "# User-defined rules. Feel free to experiment here." or replace it so that only the rules I create are entered there (in case it matters)?
I'm not sure why but I have never been able to get that link to load. I had thought it was inactive until you mentioned it.
I have tried on multiple computers with the same result (and allowing the originally blocked pdf.js script to allow). An issue with ABP?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Re: Newbie ABE help
If you get a PDF.js interface, then there should be a Download button near the top-right.
However, you're correct, I'm seeing a HTTP 403 in the Browser Console when trying to view the PDF. Curious.
However, you're correct, I'm seeing a HTTP 403 in the Browser Console when trying to view the PDF. Curious.
======
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.
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:24.0) Gecko/20100101 Firefox/24.0
Re: Newbie ABE help
WFM. If you're on Firefox 24 or later make sure that the built-in pdf.js is disabled, then install PDF Viewer 0.8.1 add-on. Newer versions of the extension don't download PDFs properly.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21
Re: Newbie ABE help
Embarrassed to say that I never thought of the download button. That worked.Thrawn wrote:If you get a PDF.js interface, then there should be a Download button near the top-right.
Sadly, I understood almost none of it (which is a lie as none without the qualifier is more accurate).
Thanks for all the help.
If there is any chance NoScript might offer a simplified method to add those, I would be interested in that. If by chance a selection such as allow on this site only would work.
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0
Re: Newbie ABE help
Glad that the PDF downloaded OK.
The linked Github issue also mentions a workaround: this link should work.
NoScript 3 will include per-site permissions, when Giorgio gets time for it to happen.
The linked Github issue also mentions a workaround: this link should work.
NoScript 3 will include per-site permissions, when Giorgio gets time for it to happen.
======
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.
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:25.0) Gecko/20100101 Firefox/25.0