[JavaScript] Geo Redirect
2014-09-22, 03:25 PM,
#1
Hello Community!

I share a simple geo redirect script for you guys, who what target multiple language, or who want show some thing for specific country.

Register or login to see this content

What this script does?
-If user come from fr, it will redirect to your fr site, else it will redirect to your english site.

How to use?
-Change the two link in javascript to yours. (http://yourfrsite/ , http://yourensite/)

Feel free to ask if you dont know, how to use it or if you need some more complex redirect method ;)
Latest Thanks - View all

jim888(2017-07-01 07:01 AM) Artie(2017-05-31 05:03 AM) emilche(2017-05-30 03:17 PM) lanzerous(2017-05-06 01:14 AM) toofast(2017-04-25 05:31 PM) Jabba the Hutt(2017-04-22 03:59 PM) yonissykes101(2017-04-18 08:01 PM) ossy(2017-04-16 08:44 AM) Eye2Eye(2017-03-26 07:28 PM) lanserek(2017-03-17 02:20 AM) 7oni90(2017-02-06 10:46 PM) MalcolmKevin(2017-01-08 07:07 PM) intermenos(2017-01-04 02:22 AM) ugnrbk(2016-11-30 05:19 AM) anizz14(2016-11-25 11:48 PM) WalkingDead(2016-10-06 01:02 AM) kach(2016-09-30 02:45 AM) artuur(2016-09-22 08:41 PM) kulpriya12(2016-08-29 09:55 AM) artur241097(2016-07-26 12:53 AM) yesman(2016-07-25 03:02 PM) vasaki(2016-07-03 09:07 AM) mdysnt(2016-06-13 07:03 PM) llerena40(2016-06-11 08:45 PM) Fierce(2016-06-11 06:51 PM) mobinul484(2016-04-14 07:40 AM) honeydew(2016-04-07 08:12 PM) rubrub(2016-03-21 03:58 PM) guniwan(2016-03-08 04:39 AM) subzero5417(2016-03-02 04:52 AM) Uncle(2016-02-23 03:08 AM) xxlfire(2016-02-16 04:57 AM) MindGamer(2016-01-31 11:08 PM) extinct(2016-01-02 04:57 AM) skimed(2015-12-28 02:28 PM) killerscript(2015-12-09 11:52 AM) | ALIEN |(2015-12-09 02:44 AM) WooRanker(2015-12-09 02:41 AM) snirben(2015-12-09 01:52 AM) Admiral(2015-12-08 11:27 PM) awenkolayaudico(2015-12-08 11:13 PM) WhiteH4wk(2015-12-08 11:09 PM) thegiantal(2015-12-08 11:09 PM) serpkiller(2015-12-07 06:36 AM) xetso(2015-12-01 09:21 AM) star79(2015-11-26 08:07 AM) v1rgil(2015-11-25 12:44 AM) TrendSetterz(2015-11-12 04:07 AM) alteregogi(2015-10-27 09:17 PM) IncomeIdeas(2015-10-15 04:25 PM) t0ks1ck(2015-10-02 04:29 AM) BeHappy(2015-09-27 01:11 PM) greenlinux(2015-09-10 03:11 AM) originator(2015-09-04 06:20 PM) Publisher1040(2015-08-29 05:52 PM) staffer(2015-08-19 11:29 AM) star432(2015-07-30 05:55 PM) blkmagic(2015-07-27 11:11 PM) RedGunn(2015-07-13 03:22 AM) gruvenn(2015-07-12 08:21 PM) LocalConnect(2015-07-04 06:18 AM) zilvis89(2015-06-26 08:37 PM) ATLWaveKid(2015-06-26 03:28 PM) unsaidscript(2015-06-23 01:25 PM) lancerimpact(2015-06-19 11:51 AM) z0mmrK(2015-06-17 05:20 AM) ‍‍‍(2015-06-13 12:24 AM) nooneiswatching(2015-06-12 07:33 PM) manangerbr(2015-06-08 09:20 AM) u5880369(2015-06-04 02:24 PM) eddsmith21(2015-06-02 02:34 AM) zeros476(2015-05-16 06:11 PM) rotaru23(2015-05-13 08:55 PM) UploadMe(2015-05-10 06:10 AM) varreaga(2015-05-02 01:12 PM) Predatorius(2015-04-28 03:08 PM) nakovic(2015-04-17 11:32 PM) pcman(2015-04-11 06:38 AM) gizmodo(2015-04-08 12:17 PM) lea21(2015-03-31 02:01 PM) tommytommy(2015-03-31 04:10 AM) cimpro(2015-03-27 09:13 AM) g3lux(2015-03-27 05:11 AM) J__128(2015-03-26 04:51 AM) santanu18(2015-03-25 07:15 PM) nutnut(2015-03-25 07:05 PM) TokyoDesu(2015-03-25 12:25 PM) AbdouMotDz(2015-03-24 09:38 PM) 1stargeneral(2015-03-24 08:30 PM) wivohiyu(2015-03-24 07:36 PM) vinxz(2015-03-24 04:54 PM) Engineer(2015-03-24 02:53 PM) conspirator(2015-03-24 01:07 PM) Cystasy(2015-03-24 05:16 AM) aldighaz(2015-03-24 12:02 AM) Riddik(2015-03-23 11:37 PM) brankokf(2015-03-23 11:29 PM) Tuw(2015-03-23 11:23 PM) xykrush(2015-03-23 11:12 PM) tonnyba111(2015-03-23 10:55 PM) dice(2015-03-23 10:48 PM) LarryTalks(2015-03-20 08:06 AM) usmang(2015-03-19 03:47 AM) coffe(2015-03-17 12:05 AM) kamillowad(2015-03-15 03:38 AM) rajapk12(2015-03-14 01:00 AM) Egayov(2015-03-13 01:24 AM) lutzen(2015-03-13 12:05 AM) dhankitsu(2015-03-12 01:39 PM) patolin997(2015-03-12 12:48 PM) CatD3vjl(2015-03-12 01:11 AM) asdasdasd123(2015-03-11 11:32 PM) frankso(2015-03-11 11:23 PM) jennyyup(2015-03-11 10:58 PM) nagato(2015-03-11 06:25 PM) jimp1173(2015-03-11 09:09 AM) 108590(2015-03-11 07:33 AM) Imfc(2015-03-11 01:52 AM) lipovpetr(2015-03-11 01:25 AM) shakilkhanpro(2015-03-11 01:15 AM) babilavena(2015-03-08 11:22 PM) CrsTos(2015-03-08 05:22 AM) p4p4c0n(2015-03-03 10:24 PM) devdoka(2015-02-27 03:41 AM) Money Hunter(2015-02-21 11:01 PM) Zatorey(2015-02-20 01:21 PM) cheetos(2015-02-17 09:24 PM) bagreg(2015-02-12 06:13 AM) Grapes(2015-02-06 05:21 PM) MrHusky(2015-01-27 11:14 PM) Krakatao(2015-01-22 09:17 AM) BlackChico(2015-01-12 01:22 PM) legendaryearner(2015-01-07 09:12 PM) Philippines(2014-12-25 02:24 PM) ale50(2014-12-13 12:47 AM) ccnetwork(2014-12-12 07:51 AM) finnishhacker(2014-12-09 05:41 AM) ambros23(2014-11-27 10:37 PM) 50cent(2014-11-27 04:11 PM) darkzero(2014-11-26 06:47 AM) lobadi(2014-11-22 12:19 AM) dinkolukic(2014-11-16 07:43 AM) kokocham(2014-11-15 02:26 PM) nu221(2014-11-15 10:21 AM) 127.0.0.1(2014-11-12 09:56 AM) vegajunito(2014-11-07 12:11 PM) 321(2014-11-04 02:34 AM) ichigo(2014-10-31 08:36 AM) bryanlucero127(2014-10-20 12:39 PM) stoki(2014-10-20 12:19 AM) chnchts(2014-10-14 05:29 PM) Piciu(2014-10-14 02:10 PM) CPALife(2014-10-13 11:17 AM) majdoubi(2014-10-13 02:31 AM) vias(2014-10-12 09:39 PM) TotalTrue(2014-10-12 09:19 PM) Spectre(2014-10-12 08:57 PM) rduque(2014-10-12 08:53 PM) goanguh(2014-10-12 07:48 PM) KillBizz(2014-10-12 07:21 PM) ςσsmiη(2014-10-12 07:17 PM) gipong(2014-10-11 08:11 AM) mr sow(2014-10-11 05:12 AM) vREDy(2014-10-11 01:23 AM) Gabriel88(2014-10-11 01:09 AM) algprince(2014-10-10 11:33 PM) thezyzz(2014-10-10 10:42 PM) dubleV(2014-10-10 06:58 PM) Arroyo(2014-10-10 06:37 PM) truehon(2014-10-10 05:48 PM) orir2(2014-10-10 05:40 PM) fw_fx(2014-10-10 05:09 PM) Calisthenics(2014-10-10 04:55 PM) tbpi007(2014-10-09 09:46 AM) J a Y(2014-10-09 09:37 AM) abef6600(2014-10-09 05:29 AM) isoz(2014-10-09 04:34 AM) xyzabc(2014-10-07 04:10 AM) tomyam(2014-10-04 02:59 PM) freezone(2014-10-01 07:45 PM) jacobyte(2014-09-30 06:20 AM) qwertz(2014-09-28 05:47 PM) rubelpangsa(2014-09-25 09:53 AM) boboMarley(2014-09-25 05:51 AM) totalfree2016(2014-09-25 02:39 AM) alxwanted6k(2014-09-24 06:04 PM) mene(2014-09-24 03:42 PM) urs4uall(2014-09-24 02:24 AM) CaptainDeadpool(2014-09-23 10:23 PM) pepito(2014-09-23 12:24 PM) jestoni(2014-09-23 03:15 AM) esoseso(2014-09-23 03:05 AM) RisingShell(2014-09-23 02:35 AM) kruczek123(2014-09-23 01:41 AM) itsacrow(2014-09-22 08:36 PM) cpadoom(2014-09-22 07:59 PM) Ang3l1n(2014-09-22 07:28 PM) Raman saab(2014-09-22 06:54 PM) oussama047(2014-09-22 06:45 PM) 08521081(2014-09-22 06:21 PM) LuckyP(2014-09-22 04:36 PM) paradise(2014-09-22 04:23 PM) Terestrial205(2014-09-22 04:16 PM) ROCKONROCK(2014-09-22 04:13 PM) trafficbeast(2014-09-22 04:07 PM) Monkey D. Luffy(2014-09-22 04:05 PM) mayank(2014-09-22 03:26 PM) 
Reply
2014-09-22, 04:05 PM,
#2
Thanks for posting, let me try this :)
Latest Thanks - View all

honeydew(2016-04-08 06:18 AM) alteregogi(2015-10-27 09:17 PM) dice(2015-03-23 10:48 PM) 
Reply
2014-09-22, 04:15 PM,
#3
Youre welcome mate! Dont forget to leave a feedback about how its working.
Reply
2014-10-09, 04:06 AM,
#4
thanks a lot for this share.
Reply
2014-10-09, 04:36 AM,
(This post was last modified: 2014-10-09, 04:53 AM by isoz.)
#5
I like this part

PHP Code:
</script>
">">http://www.telize.com/geoip?callback=getgeoip"> 

or the part where you close more brackets } than you have open.

Here's the fixed version:
PHP Code:
<script type="http://www.telize.com/geoip?callback=getgeoip"></script>

<script type="application/javascript">
function getgeoip(json){
if(json.country_code == "FR"){
window.location = "http://yourfrsite/"
}else{
window.location = "http://yourensite/"
}
</script> 

And here's what I usually use because im not sure if OP's callback is working either:
PHP Code:
<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script> 
<script language="JavaScript"> 
 
var country= geoip_country_code();
 
if(country  == "FR") {
    window.location = "link";
} else if(country  == "US") {
    window.location = "link";
} else {
    window.location = "link";
}
</script> 

OP I thought you said you could code in your journey thread.
Latest Thanks - View all

Mr White(2014-10-12 07:57 PM) 
Reply
2014-10-10, 04:51 PM,
(This post was last modified: 2014-10-10, 04:54 PM by ExclusiveMind.)
#6
then read the code again, or change your browser, theres no error in my code rofl

Code:
<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1">
        <title>GEO Redirect Demo</title>
        
        <!-- GEO Redirect -->
        <script type="application/javascript">
        function getgeoip(json){
            if(json.country_code == "FR"){
                window.location = "http://yourfrsite/"
            } else {
                window.location = "http://yourensite/"
            }
        }
        </script>
        
        <script type="application/javascript" src="http://www.telize.com/geoip?callback=getgeoip"></script>
    </head>
    
    <body>
    </body>
    
</html>

i prettified the code maybe now you can read it
Reply
2014-10-10, 04:58 PM,
#7
how about to use a site instead of script ?
http://downloadfil.es/

well you share is good but for multiple links it's hard to upload and manage multiple files
Reply
2014-10-12, 07:04 PM,
#8
This is really useful for CPA camagpins!! Redirecting traffic to right landers... Thoo traffic should be targeted.. This is useful for traffic coming from SEO and other organic Search... But with Paid traffic that is targeted you dont need this :)
Reply
2015-03-11, 01:15 AM,
#9
thankssss i will try it :)
Reply
2015-03-23, 10:53 PM,
(This post was last modified: 2015-03-23, 10:54 PM by dice.)
#10
where should i insert this piece of code pls ?

A good thing sells itself, a bad one advertises itself
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [TUTORIAL] Simple Geo Redirect Script Wyctus 16 1,271 2017-09-11, 07:54 PM
Last Post: darkerchy
  Be the king over your traffic - Country redirect script ★★★ BotMan ★★★ 47 6,257 2017-09-08, 12:27 AM
Last Post: PHPMaster
  [SHARE] Redirect Website Watt 5 672 2017-07-13, 07:43 PM
Last Post: Watt
  Get Instant Geo Targeted (Viral) Traffic To Your Websites and Videos For Free! eliter1q 21 5,489 2017-05-17, 07:41 AM
Last Post: patco
  [HOT SHARE] ☆ [EASY SETUP] ☆★☆ THE ULTIMATE GEO REDIRECT/SPLIT TESTING CPA SCRIPT ☆★☆ MoneyCashers 11 3,401 2017-04-20, 03:59 PM
Last Post: darkleon2393




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top