Context-based HTTPS forcing?

Ask for help about NoScript, no registration needed to post
aloishammer
Senior Member
Posts: 65
Joined: Mon Apr 20, 2009 4:03 pm

Context-based HTTPS forcing?

Post by aloishammer »

I'm using a fair number of sites that like to pretend they're fully SSL-secured; and they're not. Apart from the fact it's kind of a terrible idea to include Flickr content in SpringPad at all, or amazonaws.com content in Twitter at all, it's also being served via HTTP to an "HTTPS" site. :x

It's not much of a Band-Aid, but is there a way to—or could NoScript be enhanced to—force some of the Big Web Farm content to HTTPS only if the embedding site is HTTPS-"secured"?

Best possible example: HTTPS Twitter includes HTTP twimg.com content; if I just force HTTPS for twimg.com, some other websites / webapps break.

Once again, relying on NoScript to fix brain-dead websites when the operators just close support tickets without answering them...


PS: Silly regex question: what's the best way to create a single-line expression for "all http://site.com/.* OR http://subdomain.site.com/.* content?
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12