Whitelisting all sub-domains only when served over https

Ask for help about NoScript, no registration needed to post
idegrt
Posts: 2
Joined: Wed Apr 08, 2015 10:18 am

Whitelisting all sub-domains only when served over https

Post by idegrt »

Is it possible to allow scripts from all sub-domains of a site only if they are served over https? I can allow all sub-domains or I can specify https for a particular sub-domain but I can't specify https for all sub-domains. To phrase it another way if the whitelist supported an asterisk wildcard it would be specified as https://*.example.com

I'm not looking for a global setting to block all non-https scripts like

Code: Select all

noscript.allowHttpsOnly
nor am I trying to prevent all non-https loads from *.example.com with

Code: Select all

noscript.httpsForced
just non-https scripts from *.example.com.

Any help would be appreciated. If this is not currently possible please consider this a feature request.
Mozilla/5.0 (Windows NT 6.0; rv:37.0) Gecko/20100101 Firefox/37.0
barbaz
Senior Member
Posts: 11143
Joined: Sat Aug 03, 2013 5:45 pm

Re: Whitelisting all sub-domains only when served over https

Post by barbaz »

allow example.com, then
noscript options > advanced > abe > user

Code: Select all

Site ^https://(?:[^/:]+\.)?example\.com/.*
Accept
Site .example.com
Deny INC(SCRIPT, OBJ, XHR, FONT, MEDIA)
Sandbox
does that work?
Last edited by barbaz on Wed Apr 08, 2015 8:17 pm, edited 1 time in total.
Reason: fix typo that made the suggested ABE rule completely useless oops
*Always* check the changelogs BEFORE updating that important software!
-
idegrt
Posts: 2
Joined: Wed Apr 08, 2015 10:18 am

Re: Whitelisting all sub-domains only when served over https

Post by idegrt »

barbaz wrote:allow example.com, then
noscript options > advanced > abe > user

Code: Select all

Site ^https?://(?:[^/:]+\.)?example\.com/.*
Accept
Site .example.com
Deny INC(SCRIPT, OBJ, XHR, FONT, MEDIA)
Sandbox
does that work?
Thanks for your suggestion but this still allows active content from non-https versions of example.com

Did you mean

Code: Select all

Site ^https://(?:[^/:]+\.)?example\.com/.*
I'm going to spend some time studying the ABE documentation tomorrow.
Mozilla/5.0 (Windows NT 6.0; rv:37.0) Gecko/20100101 Firefox/37.0
barbaz
Senior Member
Posts: 11143
Joined: Sat Aug 03, 2013 5:45 pm

Re: Whitelisting all sub-domains only when served over https

Post by barbaz »

idegrt wrote:Did you mean

Code: Select all

Site ^https://(?:[^/:]+\.)?example\.com/.*
Image Yes, thanks for spotting that
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply