View Single Post
Old 03-07-2008, 01:10   #10959
bluecar1
Inactive
 
Join Date: May 2008
Location: Kent
Services: No DPI Kit snooping on USERS
Posts: 447
bluecar1 has a spectacular aura about thembluecar1 has a spectacular aura about thembluecar1 has a spectacular aura about thembluecar1 has a spectacular aura about them
Re: Virgin Media Phorm Webwise Adverts [Updated: See Post No. 1, 77, 102 & 797]

Quote:
Originally Posted by Portly_Giraffe View Post
very interesting, similar wording to that used by phorm

peter

---------- Post added at 01:10 ---------- Previous post was at 01:04 ----------

pete this works on IIS, but has to be on a .shtml page as the get remote_addr is a server side include

just got to put the relevant ip ranges in

so going to do a redirect on my main page later with a banner like "checking your ISP before i allow you access to my site"

peter


<script language="javascript">

<!--
var ip = '<!--#echo var="REMOTE_ADDR"-->';
if (ip < "86.128.104.255" && ip > "86.128.104.1" ) {
alert("You are visiting this website from an ISP who uses Webwise from Phorm and so your access to this site is blocked ,

your IP is " +ip);
if (confirm("Click OK to learn more at nodpi.org or CANCEL to go to webwise opt out page "))
{location.href="https://nodpi.org" } else {location.href="http://webwise.bt.com" }
}
// -->
</script>
bluecar1 is offline