IP Address Blocker

The board for your support

IP Address Blocker » Help & Support » proxy re-wrinting URLs

proxy re-wrinting URLs

Page: 1

Author Post
Member
Registered: Jan 2010
Posts: 4
Blocking the IP of the proxy has worked for me in most instances, but I have one tricky one - and wanted to see if anyone had experience or advice.

www.sparkproxy.com takes my source code and replaces every url with thier own. This effectively stops my scripts from working. Surprisingly, statcounter still works - sadly toolator doesn't.

For example - toolator script should be:
<script src='http://www.toolator.com/ban/banned/?member=1angrydaughter' type='
text/javascript'/>

But sparkproxy rewrites it to
<script src="http://www.sparkproxy.com/browse.php?u=Oi8vd3d3LnRvb2xhdG9yLmNvbS9iYW4vYmFubmVkLz9tZW1iZXI9MWFuZ3J5ZGF1Z2h0ZXI%3D&b=29" type="text/javascript"/></script>

Any ideas on how to stop a proxy from replacing and "src" or "a href" tags with their own URL?
Member
Registered: Jan 2010
Posts: 4
I came up with a script that seems to be working. Here it is for anyone who runs into the same problem:

Like I mentioned, the anonymous proxy may overwrite all your URLs with their own, preventing your scripts from running. One of the URLs sparkproxy changed was document.URL. This script compares document.URL to "yourdomain" and if it returns NULL that means your site may have been accessed by a proxy surfer. An alert pops up (feel free to put in your own custom message) and off they go to google (or website of your choosing).

If a vistor comes in through the front door, there shouldn't be an issue. So far this has worked for me.


<script type="text/javascript">
var str= document.URL;

if (str.match("yourdomain") == null)
{

alert("No Proxy Surfing Allowed! Please visit me directly next time and have a super day :) ");
window.location = "http://www.google.com/"

}
</script>


I'm new to writing my own javascripts. Anyone see any potential problems with this one?
Administrator
Registered: Aug 2008
Posts: 135
Location: Netherlands
Dear oneangrydaughter,

thanks for this.
We already planned to include an option for banning proxys. We`ve something similar like you`re showing.

We also tested yours and does work fine.

Within a couple of months a new update of ip-blocker will be released. In that update the option for banning proxys will also be available.
Member
Registered: Jan 2010
Posts: 2
Thanks, oneangrydaughter.
Member
Registered: Oct 2009
Posts: 11
oneangrydaughter, the script you posted above, could that be placed on our blogger template? And where should it be placed? Thank you!

Page: 1

IP Address Blocker » Help & Support » proxy re-wrinting URLs

IP Address Blocker is powered by UseBB 1 Forum Software