Block embedded unless on primary domain

Ask for help about NoScript, no registration needed to post
nmb3000
Posts: 4
Joined: Tue Dec 11, 2012 2:34 am

Block embedded unless on primary domain

Post by nmb3000 »

Hello, I have a question about blocking embedded objects such as Flash.

Is there any way to block embedded objects unless you're on a page in the "originating" or "primary" domain? For example, I'd like YouTube videos to be blocked unless I'm on youtube.com.

I realize this is a tricky one due to the way sites host their embedded objects from other domains (youtube.com -> ytimg.com for example). Because of this it would probably have to be customized by hand. For example, I'd probably enable the "Apply these restrictions to whitelisted sites also" but then have some kind of exception list, to which I'd add "youtube.com" so that content on that domain is not blocked by default.

Sorry if this isn't clear. Thanks for your time!
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Block embedded unless on primary domain

Post by Thrawn »

There is a sticky post about this.

You can also try RequestPolicy - most/all of the support team uses it - but it does much more than restrict plugins to their own site, so read carefully first.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0
nmb3000
Posts: 4
Joined: Tue Dec 11, 2012 2:34 am

Re: Block embedded unless on primary domain

Post by nmb3000 »

Thank you, I'll take a look at those posts. Apologize for not noticing them earlier :)
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
Post Reply