Allow script from a domain only when visiting that domain.
Posted: Tue Jul 30, 2013 5:05 pm
Is it possible to allow scripts loaded from a domain only if in web sites loaded from that domain. But forbid the same scripts if loaded from another site?
Example:
Allow scripts from google.com if used by a html page served by google.com, but do not allow scripts from google.com if the using html page is loaded from (for example) facebook.com?
Another example:
Allow scripts from facebook only if browing a facebook site, but disallow it if used by other sites for "Like It" buttons.
Example:
Allow scripts from google.com if used by a html page served by google.com, but do not allow scripts from google.com if the using html page is loaded from (for example) facebook.com?
Another example:
Allow scripts from facebook only if browing a facebook site, but disallow it if used by other sites for "Like It" buttons.