[RESOLVED]filter to allow *.CloudFront.net via specific site
Posted: Sat Jun 13, 2015 10:23 am
A particular irritation I've been hitting is that certain sites, e.g. Kickstarter.com, use Cloudfront.net to host scripts.
*BUT* the Scripts are in some repository there, and summoned up with <randomid>.cloudfront.net as the URL. Most pages seem to use about 3 such sub-domain links. I don't want to always allow *.cloudfront.net, as other sites might host scripts there...
Is there a filter I can write to say "allow *.cloudfront.net if and only if the reference comes from kickstarter.com" ?
*BUT* the Scripts are in some repository there, and summoned up with <randomid>.cloudfront.net as the URL. Most pages seem to use about 3 such sub-domain links. I don't want to always allow *.cloudfront.net, as other sites might host scripts there...
Is there a filter I can write to say "allow *.cloudfront.net if and only if the reference comes from kickstarter.com" ?