Attention: Server migration delayed. - Please click [here] to read more! (Last update: Sunday, 21st of April, 08:45 PM/20:45, UTC+2, Europe)


Be the king over your traffic - Country redirect script
2014-02-18, 03:19 AM, (This post was last modified: 2014-02-18, 03:21 AM by ★★★ BotMan ★★★.)
#1
Hey, let you traffic drive where you want with this unique country redirect script.

If example in some CPA network some of countries are not converting well, switch them to other network.

[hide]
This script using maxmind API.
Script is pretty straight forward.
Lets check it:

PHP Code:
<script src="//j.maxmind.com/app/country.js" charset="ISO-8859-1" type="text/javascript"></script>
<
script>
    var 
target = new Array(); // Target Array, Don't remove this.
    
    // Here's an example which redirects visitors to your specified URL for your targeted country code:


    
target['All'] = "http://example.com/all-visitors/"// Redirects non-targeted/other visitors to this URL.
    
target['US'] = "http://example.com/us-visitors/"// Redirects' "US" (United States) Visitors to this URL.
    
target['GB'] = "http://example.com//uk-visitors/"// Redirects' "GB" (United Kingdom) Visitors to this URL.
    
target['CA'] = "http://example.com//ca-visitors/"// Redirects' "CA" (Canada) Visitors to this URL.



    
    /* =============== DON'T EDIT THE BELOW CODE =============== */
        
var visitorCountryCode geoip_country_code();
        var 
redirectURL target[visitorCountryCode];
        if(
redirectURL == nullredirectURL target['All'];
        if(
redirectURLwindow.top.location.href redirectURL;
    
/* =============== DON'T EDIT THE ABOVE CODE =============== */
</script>? 

All script lines are commented so i will not make any more comments here.
To find your needed country code please look here and check column Alpha-2 code

[/hide]

Cheers
★★★ BotMan ★★★
Reply
Share This Thread :

2014-02-18, 03:33 AM,
#2
hey
thank you for the cool script :)
this will come in handy for me .....
Reply
2014-02-18, 04:01 AM,
#3
Simple but effective, thank you :)
Reply
2014-02-18, 04:31 AM,
#4
(2014-02-18, 03:33 AM)barthezz Wrote: hey
thank you for the cool script :)
this will come in handy for me .....

Yes this is awesome script, you can do magic with it if using properly.

(2014-02-18, 04:01 AM)HomeLine Wrote: Simple but effective, thank you :)

Agree :)
Reply
2014-02-18, 07:27 AM,
#5
(2014-02-18, 04:31 AM)★★★ BotMan ★★★ Wrote:
(2014-02-18, 03:33 AM)barthezz Wrote: hey
thank you for the cool script :)
this will come in handy for me .....

Yes this is awesome script, you can do magic with it if using properly.

(2014-02-18, 04:01 AM)HomeLine Wrote: Simple but effective, thank you :)

Agree :)

+1
Reply
2014-02-18, 08:01 AM,
#6
Very appreciated ;) thanks

[Image: 8Wfchs3.gif]
Reply
2014-02-18, 08:04 AM,
#7
thanks for this one botman! :)
Reply
2014-02-18, 08:23 AM, (This post was last modified: 2014-02-18, 08:23 AM by ★★★ BotMan ★★★.)
#8
(2014-02-18, 08:01 AM)casua1 Wrote: Very appreciated ;) thanks

(2014-02-18, 08:04 AM)Zanarkand Wrote: thanks for this one botman! :)

No problem guys, I'm glad you see value in this script. this is a must script for every Elite :)

Cheers
Reply
2014-02-18, 08:34 AM,
#9
yeah I've been looking for this for a very long time I tried to code myself a script for my website but it shows this has redirect loop hahha thanks for this I will use this later
Reply
2014-02-18, 08:50 AM,
#10
(2014-02-18, 08:23 AM)★★★ BotMan ★★★ Wrote:
(2014-02-18, 08:01 AM)casua1 Wrote: Very appreciated ;) thanks

(2014-02-18, 08:04 AM)Zanarkand Wrote: thanks for this one botman! :)

No problem guys, I'm glad you see value in this script. this is a must script for every Elite :)

Cheers

Hey just one quick question, if I want to implement this on blogger or WP, do I need to inject this in template or separately in each post I want. And if for exp. I want to put this .onclick (on download button)
what is pre code I need to use in order to this script work properly? :)

[Image: 8Wfchs3.gif]
Reply


Related Threads
Thread Author Replies Views Last Post
  [UNIQUE METHOD] How to Exploit Reddit to Promote Your CPA Offers (UNSATURATED) Padfoot 75 17,587 Today, 12:08 AM
Last Post: vader1
  Double Meta Refresh Php Script insomniac 2 159 2019-04-20, 05:02 PM
Last Post: gasol1
  [TUTORIAL] Simple Geo Redirect Script Wyctus 45 8,276 2019-04-20, 04:33 PM
Last Post: elshaarawy
  [FREE Case Study] Penny Traffic by using Bing Ads To Promote Affiliate/CPA Offers ZeroDos 37 9,127 2019-04-19, 09:00 AM
Last Post: Riderwwz
  Make $100 Overnight Selling Your Digital Product - Quck & Smart Mille8 37 4,497 2019-04-18, 12:37 PM
Last Post: falarious





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

Copyright © 2013 - 2019 by (company to be announced later)
Enhanced by MyBB
Return to top
This forum uses Lukasz Tkacz MyBB addons.