Advertisement
Guest User

SIMPLE GEO-REDIRECT SCRIPT

a guest
Jul 12th, 2012
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>
  3.  
  4. <script language="JavaScript">
  5. <!--
  6. var country= geoip_country_code();
  7. if(country  == "GB"){
  8. window.location = "URL";
  9. }
  10. else if(country  == "AU"){
  11. window.location = "URL";
  12. }
  13. else if(country  == "SG"){
  14. window.location = "URL";
  15. }
  16. else if(country  == "CA"){
  17. window.location = "URL";
  18. }
  19. else if(country  == "NZ"){
  20. window.location = "URL";
  21. }
  22. else if(country  == "US"){
  23. window.location = "URL";
  24. }
  25. else if(country  == "ZA"){
  26. window.location = "URL";
  27. }
  28. else if(country  == "FR"){
  29. window.location = "URL";
  30. }
  31. else if(country  == "DE"){
  32. window.location = URL";
  33. }
  34. else if(country  == "FI"){
  35. window.location = "URL";
  36. else {
  37. window.location = "URL";
  38. }
  39. //-->
  40. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement