My ISP injects JavaScript files - most notabily bmi.js - and certain other unwanted additions to web requests when tethering from my phone.
It would be OK if the JavaScript was useful, but it is programmed terribly - and as a JavaScript developer, this really annoys me when the injected scripts break my own work! It looks like it annoys some other people too...
I'd like to block any activity to the IP address 1.2.3.*. I've noticed 1.2.3.4 and 1.2.3.8 in use, or if anyone can give me any better solutions, I'd be happy to try.
Thanks!
EDIT
I have to agree with George Edison with That sounds like a terrible ISP. The plot thickens ... while playing around with iptables and the like, I noticed that as soon as I blocked 1.2.3.4, the script was simply injected from another domain. I blocked that, it moved on to another.
In my web browser, I can access the script from ANY DOMAIN! What the heck is the ISP doing here? For example, these URIs all respond with the script:
http://1.2.3.4/bmi-int-js/bmi.jshttp://1.2.3.5/bmi-int-js/bmi.jshttp://4.3.2.1/bmi-int-js/bmi.js
and nauseatingly:
http://ScriptInjection-WhyDoYouExist.com/bmi-int-js/bmi.jshttp://google.com/bmi-int-js/bmi.jshttp://askubuntu.com/bmi-int-js/bmi.js
face palm