Page 1 of 1

Allow script from a domain only when visiting that domain.

Posted: Tue Jul 30, 2013 5:05 pm
by holger
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.

Re: Allow script from a domain only when visiting that domai

Posted: Tue Jul 30, 2013 8:34 pm
by Giorgio Maone