My ISP, injects JavaScript code into every website I visit. Is there a way to filter all incoming traffic in OS X and remove that injected code?

  • 1
    There is greasekit with which you can inject your user scripts (you must design yours) which will remove the unwanted scripts. If you can provide more info about the javascript which is injected, I can try to write a javascript to solve this problem. – nicael Jan 10 '15 at 7:08
  • Which URL is the javascript? – Mark Jan 10 '15 at 12:04
  • 2
    Use a VPN, better and safer solution than an userscript (the ISP's JS may execute before your userscript removes it so it's pointless). – user56648 Jan 10 '15 at 14:08
  • Also, @Till, I recommend retitling this question to something like “Manipulate incoming HTTP responses”, since that will also cover anything else your ISP may try to shove on you. (And I laud your efforts to break free of their crappy behavior!) – Zearin Mar 9 '15 at 21:16

That will be incredibly hard. It would be far easier to establish a VPN connection to get out from under the offending hostile network.

If you can ensure SSL connections and the network isn’t a very strong state actor, you might get pretty good immunization / isolation from that sort of tampering.

Barring that, keep the OS updates as far as possible as Apple continues to enhance security and privacy and this sort of attack leaves you extremely vulnerable to snooping, security risks and data leakage from the sites you enter data.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .