[RESOLVED] Problem with AirDoid

Ask for help about NoScript, no registration needed to post
s3drghkei
Posts: 7
Joined: Wed May 01, 2013 7:46 am

Re: Problem with AirDroid

Post by s3drghkei »

Thrawn wrote:
@Giorgio: It would be much appreciated if there were a way to specify a regular expression <resource> utilizing a token of some kind to represent a generic local network. Specifying the subnet explicitly as I have done means that a simple rule will not work for multiple offices.
I'm not sure what you mean by this, apart from the existing 'LOCAL' keyword? If you really want to apply this to multiple LANs, and if you're very confident that no-one on those LANs has access to sensitive sites by virtue of their network location (router admin pages, local servers, etc), then you could just modify the built-in rule. But you've already indicated that you don't want non-Android systems to be included.
My thought here was not thoroughly considered. I was thinking that something like LOCAL isn't possible in a regex, which seemed like a pity. But you are right that I want finer control than that anyway. Perhaps a solution wherein one can define multiple custom-named lists of trusted subnets (eg. Androids, Servers, Workstations) and then refer to those names somehow in the ABE rulesets, including in regular expressions. ABE looks a bit like a firewall and some firewalls allow for this sort of thing. That said, I can achieve what I need without that in this case, so consider it a low priority wishlist item :)
You know, this discussion has reminded me of a thought that I've had before, about the idea of having a keyword available in ABE rules, eg 'TRUSTED', to refer to the regular site whitelist, so you can have rules that take into account whether you trust a site. Then you could have a rule such as:

Code: Select all

Site LOCAL
Accept from LOCAL
Accept GET HEAD OPTIONS from TRUSTED
Deny
Similar to what I'm thinking, but I'd like to see the user given the option of multiple lists to use as she sees fit. I may trust example.com enough to let them run scripts in my browser, but not enough to let them do AirDroid-like activities.
Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefox/20.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Problem with AirDroid

Post by Thrawn »

s3drghkei wrote:I may trust example.com enough to let them run scripts in my browser, but not enough to let them do AirDroid-like activities.
Yep, which is why there is the separation between regular script-blocking and ABE...

Have you tried using multiple regexes in the Site expression?

Code: Select all

Site ^https?://192\.168\.76\.10[0-9]:8888(/.*)? ^https?://xxx\.yyy\.zzz\.aa[0-9]:8888(/.*)? ^https?://eee\.fff\.ggg\.hh[0-9]:8888(/.*)?
Accept GET OPTIONS from web.airdroid.com
Accept from LOCAL
Deny
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0
s3drghkei
Posts: 7
Joined: Wed May 01, 2013 7:46 am

Re: Problem with AirDroid

Post by s3drghkei »

Thrawn wrote: Have you tried using multiple regexes in the Site expression?

Code: Select all

Site ^https?://192\.168\.76\.10[0-9]:8888(/.*)? ^https?://xxx\.yyy\.zzz\.aa[0-9]:8888(/.*)? ^https?://eee\.fff\.ggg\.hh[0-9]:8888(/.*)?
Accept GET OPTIONS from web.airdroid.com
Accept from LOCAL
Deny
No, I haven't, and hadn't realized a space-delimited list of regexs was possible. I'd been supposing this sort of thing, modified as necessary when actual addressing plans are worked out:

Code: Select all

Site ^https?://192\.168\.(76\.10[0-9]|8[36]\.1[78][0-9]|15[4-6]\.1[0-9]2):8888(/.*)?
...
Mozilla/5.0 (Windows NT 5.1; rv:20.0) Gecko/20100101 Firefox/20.0
Post Reply