4

For example I'm browsing www.example.com

At some point, some Javascript is fetched from another domain.

I would like to sandbox example.com. Anything that is not hosted on example.com should be silently dropped. I can't find the correct keyword for this kind of behavior.

  • don't know, but two thoughts that don't quite do it. a)the hosts file - but that won't 'cos it would block everything and you'd have to know the domain to block beforehand in order to use the hosts file for that b)privoxy can filter things out but last time I checked, it didn't work with https and i'm not sure what filter would do it and it slows browsing. – barlop May 26 '14 at 14:02
1

Since you're using Chrome, you should check out Scriptsafe, Blocksite and Privoxy, as per this SU question.

For Firefox, Noscript should satisfy all your needs in this case.

  • Very incomplete answer. In all these examples you mention are you not able to show the setting you suggest he uses? And I know that for one of your solutions - privoxy a)when I tried it a few years back, it didn't work with https b)what action or filter would do the task. – barlop May 28 '14 at 13:20
0

You can use BlockSite add on for doing this: https://chrome.google.com/webstore/detail/block-site/eiimnmioipafcokbfikbljfdeojpcgbh?hl=en

  • No. I don't want to block the target domain. I want to restrict the origin domain. – alecail May 26 '14 at 14:50

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.