5 Replies - 4753 Views - Last Post: 15 September 2013 - 04:02 AM

#1 hadi_php   User is offline

  • D.I.C Regular
  • member icon

Reputation: 10
  • View blog
  • Posts: 382
  • Joined: 23-August 08

Prevent Javascript Injection from Wireless provides

Posted 13 April 2011 - 12:39 PM

Well i am in trouble. When i use a a specific wireless connection then i saw in source code that a javascript file is injects automatically.
which is -

<script src="http://1.2.3.4/bmi-int-js/bmi.js" language="javascript"></script>


at at the end of my all code -

<script language="javascript"><!--
bmi_SafeAddonload(bmi_load,"bmi_orig_img",0);//-->
</script>


This Javascript is specially used for image compression of visited sites to save their bandwidth. I need to prevent my site from it. because when it loads then my sites all function doesnt work properly.

So i need to destroy that loaded javascript file. How to do it?

Is This A Good Question/Topic? 0
  • +

Replies To: Prevent Javascript Injection from Wireless provides

#2 JMRKER   User is offline

  • D.I.C Addict
  • member icon

Reputation: 134
  • View blog
  • Posts: 868
  • Joined: 25-October 08

Re: Prevent Javascript Injection from Wireless provides

Posted 14 April 2011 - 05:41 AM

Is this code injected by you or your service provider?
Was This Post Helpful? 0
  • +
  • -

#3 hadi_php   User is offline

  • D.I.C Regular
  • member icon

Reputation: 10
  • View blog
  • Posts: 382
  • Joined: 23-August 08

Re: Prevent Javascript Injection from Wireless provides

Posted 15 April 2011 - 05:53 AM

View PostJMRKER, on 14 April 2011 - 05:41 AM, said:

Is this code injected by you or your service provider?


by service provide.

I have found a page this would help u learn more -
http://stackoverflow.com/questions/4113268/how-to-stop-javascript-injection-from-vodafone-proxy


i am badly in need of a solution.

EDIT
--------------------------
I uses jQuery in my site. My CSS working. But jQuery document ready called codes are not working.

So if there any way to destroy that script and its all variable so that my jQuery code will work....?

This post has been edited by hadi_php: 15 April 2011 - 05:59 AM

Was This Post Helpful? 0
  • +
  • -

#4 JMRKER   User is offline

  • D.I.C Addict
  • member icon

Reputation: 134
  • View blog
  • Posts: 868
  • Joined: 25-October 08

Re: Prevent Javascript Injection from Wireless provides

Posted 15 April 2011 - 07:30 AM

You might want to check your agreement with your service provider.
They may have the right to inject their code into your script with your acceptance to use their site.
Was This Post Helpful? 0
  • +
  • -

#5 hadi_php   User is offline

  • D.I.C Regular
  • member icon

Reputation: 10
  • View blog
  • Posts: 382
  • Joined: 23-August 08

Re: Prevent Javascript Injection from Wireless provides

Posted 15 April 2011 - 01:56 PM

View PostJMRKER, on 15 April 2011 - 07:30 AM, said:

You might want to check your agreement with your service provider.
They may have the right to inject their code into your script with your acceptance to use their site.


whatever the agreement that not fact .... [They didnt mention it in agreement its actually a wireless internet with SIM card on our country].

i need to fix this thing...i have mailed them they didnt respond .... so i go for the solution...
Was This Post Helpful? 0
  • +
  • -

#6 LiquiDetail   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 15-September 13

Re: Prevent Javascript Injection from Wireless provides

Posted 15 September 2013 - 04:02 AM

Sorry that I am adding to an old post but I did not see a solution. I thought to myself I could Google and find a solution but no one seems to be helpful. I have had the same issue with the Wireless Carrier Cricket. With no solution in this thread I figured I would use my brain instead of clicking another link. I you Encrypt your traffic then you should in theory block the ability for Cricket or another provider to inject BS and other .js into your web files.

I was able to break around this by connecting to a VPN connection (To Encrypt my Data so Cricket doesn't know what the Data is to inject into. You could also use a Port 443 with a SSL VPN Solution)

Windows XP Pro has built in free VPN Server capabilities Google "XP as VPN Server"

Please let me know if this works for anyone that may have this issue.

This post has been edited by andrewsw: 15 September 2013 - 04:12 AM
Reason for edit:: Removed quote

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1