View Single Post
Old 06-04-2011, 02:06 AM  
cooldude7
Confirmed User
 
cooldude7's Avatar
 
Industry Role:
Join Date: Nov 2009
Location: Heaven
Posts: 4,306
Quote:
Originally Posted by Barry-xlovecam View Post
http://www.geoplugin.net/javascript.gp run your script in a browser its looks like a currency converter ...

it doesnt do anything

if function geoplugin_countryCode() {return MY} then?

if (!amt) { return false; } amt is the amount from the shopping cart?

Where did you find this?


Edit: From here http://www.geoplugin.com/quickstart

this does not redirect or block with geo-ip
lol, thanks for the info.,

but what it does is give the country code., and then


i use

switch(geoplugin_countryCode()){
case "MY" :
document.location.href = "http://www.xxxtreme.com/blocked.html";
break;

to check if the country code is MY , and then it redirects it to given url.

thanks for your time.
cooldude7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote