Allow all requests for plex.tv

Discussions about the Application Boundaries Enforcer (ABE) module
User avatar
Tomalak
Posts: 5
Joined: Wed Oct 01, 2014 6:48 pm
Contact:

Allow all requests for plex.tv

Post by Tomalak »

I'm trying to do a rather mundane thing: Stream shared video from a remote library on the plex.tv media streaming website.

Remote libraries are HTTP servers that are accessed with their IP address with requests to URLs like http://93.x.x.x:32400/. Since they are private machines they regularly get assigned new IP addresses. Consequence: Even though manually allowing them in NoScript works, doing that doesn't make a whole lot of sense.

The ABE rule that should do the right thing is trivial:

Code: Select all

Site .plex.tv
Accept
Yet, it does not work: The plex.tv website loads, but access to the remote library does not.

Cross-check: This immediately blocks the entire Plex site:

Code: Select all

Site .plex.tv
Deny
So ABE is enabled and I'm doing something wrong. Thanks for your help!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow all requests for plex.tv

Post by barbaz »

does any advices from viewtopic.php?f=7&t=19589 help you?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:32.0) Gecko/20100101 SeaMonkey/2.29.1
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow all requests for plex.tv

Post by barbaz »

oh, and if you need to match arbitrary ipv4 address in your abe rule, try

Code: Select all

^https?://\d+\.\d+\.\d+\.\d+[/:]
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:32.0) Gecko/20100101 SeaMonkey/2.29.1
User avatar
Tomalak
Posts: 5
Joined: Wed Oct 01, 2014 6:48 pm
Contact:

Re: Allow all requests for plex.tv

Post by Tomalak »

Thanks, makes sense. I've tried this, in the SYSTEM block:

Code: Select all

Site ^https?://\d+\.\d+\.\d+\.\d+:32400/.*
Accept from .plex.tv
and less specific:

Code: Select all

Site ALL
Accept from .plex.tv
both with no success.

Again: My intent is to use ABE to avoid being forced to allow individual IP addresses in NoScript. The hosts in question are not on my LAN, they get a new IP every 24 hours. Manually white-listing them every day is pointless.

If I interpret the ABE FAQ correctly, this is not possible. ABE rules do not override NoScript rules and you have to enable stuff in NoScript before ABE even gets to see it. Is that correct?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Allow all requests for plex.tv

Post by Giorgio Maone »

May I see any message starting with "[ABE" which you can find in your Browser Console (Ctrl+Shift+J) when this happens?
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
User avatar
Tomalak
Posts: 5
Joined: Wed Oct 01, 2014 6:48 pm
Contact:

Re: Allow all requests for plex.tv

Post by Tomalak »

I would love to, but there are no ABE messages in the browser console.

There are loads of Plex related debug messages, nothing from ABE. For good measure I've even enabled the legacy devtools.errorconsole.enabled Firefox preference and ticked "Chrome and Addon debugging" in the console settings. No change. :?

NoScript version is 2.6.8.43, Firefox version is 32.0.3.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: Allow all requests for plex.tv

Post by barbaz »

Oh, you mean SCRIPT allowing. No, that can't be accomplished via ABE, as it's a totally separate part of the NoScript add-on.
If the IPv4 addresses are truly arbitrary, there is no solution other than "Allow Scripts Globally" (maybe "Allow HTTPS scripts globally on HTTPS documents" will do if all the URLs are https?) or cascading permissions mode.
If it's not quite arbitrary, see if http://noscript.net/features#sitematching helps you at all?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:32.0) Gecko/20100101 SeaMonkey/2.29.1
User avatar
Tomalak
Posts: 5
Joined: Wed Oct 01, 2014 6:48 pm
Contact:

Re: Allow all requests for plex.tv

Post by Tomalak »

Yes, I meant script allowing. In the meantime, I figured from the FAQ that it wasn't possible. Though it really would have been nice. *sighs*

"Allow scripts globally" is not an option, under these circumstances I could just as well remove NoScript entirely.

Well then I'm back at clicking "allow temporarily" every time I want to use the remote library. I'll look into creating a ranged sitematch in NoScript, maybe that helps somewhat. I think I can take it from here. Thanks!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Allow all requests for plex.tv

Post by Thrawn »

Did you try the 'cascade permissions' mode as barbaz suggested?
======
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:32.0) Gecko/20100101 Firefox/32.0
User avatar
Tomalak
Posts: 5
Joined: Wed Oct 01, 2014 6:48 pm
Contact:

Re: Allow all requests for plex.tv

Post by Tomalak »

It's tempting to do that.

The point is... My reason for running NoScript is to be able to select what kinds of widgets, trackers and whatnot should be allowed to run in any given page, with the default being "none". Cascading permissions would nullify that level of control.

Then again, Ghostery does much of that now, and maybe does it better. I should give cascading permissions a try, it really could come out better than than suspected.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Allow all requests for plex.tv

Post by Thrawn »

If you mark domains as Untrusted, then that will still be respected even in cascade mode...
======
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:32.0) Gecko/20100101 Firefox/32.0
Post Reply