syntax highlighter

Thursday, January 19, 2012

Removing unwanted ads injected by Internet Service Provider

Update:-  So I finally got some time to come up with another working solution. I have added it Here 

Recently i noticed that my chrome browser was showing a horizontal banner of flash based ad at the bottom of every page. First i thought it as some malware issue with chrome but i noticed same with a brand new installation of firefox or other browsers. My first thought was that something was wrong with my system (virus and all) but antivirus scans yielded nothing. After some googling i found out that my ISP was injecting ads into every page I visit. Every page that i visited consisted of the following injected code

<div id="sTREAMrIDE" class="9;14"></div>
<script type="text/javascript" src=""></script>

In this code basically a javascript file is being loaded from and the acquired ad is being displayed in the div tag above.

Now to remove this there are 2 ways to proceed

1. STOP the website from communicating to the url so that it could not fetch the ad

This can be done by editing the host file which could be found in C:\windows\system32\drivers\etc\hosts (this is the default location. This may vary according to the drive of installation of operating system)

Open notepad as Administrator (right click on the icon and click run as administrator). Open the file from above mentioned location and add the following line at the end

Save the file and you are done.

2. Install an extension which disables scripts

You can also install extensions which removes or blocks the functioning of scripts on every webpage

Chrome :- ScriptNO

Firefox :- NO script

I am developing an extension to block the streamride script and will be posting the link of the extension soon. Till then enjoy..

Update:-  So i finally got some time to come up with another working solution. I have added it Here 


  1. thanks for this post, i also experienced the same with my ISP. can you explain me how ISP ads injection works?, i really wanna know how it works,

  2. I will try that,
    Awesome info dude. hope it work

  3. Aero cast one of best internet provider in Lucknow. Contact Aero cast internet service provider in Lucknow and experience high speed internet plans.

  4. Aero cast is a High Speed (ISP) in Lucknow. An ISP, or internet service provider is a company that provides consumers and businesses access to the Internet.