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="http://ui.streamride.net/ui.js"></script>

In this code basically a javascript file is being loaded from http://ui.streamride.net 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 http://ui.streamride.net 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

127.0.0.1 streamride.net ui.streamride.net

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 

5 comments:

  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,

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

    ReplyDelete
  3. 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.

    ReplyDelete
  4. My web was infected by ads injec isp, i hope this post make solution for me, thanks...

    http://kuretisasiklinik.com/

    ReplyDelete