GEO Redirection Script
2018-10-30, 08:12 AM,
#1
Search on google for a while and find no working script.
I also tried Geo redirection script in CPAElites toolbox but it has no default link, it means I have to add link for every country in the list.
I just need simple script which redirect
tier 1 countries to offer 1
tier 2 and few tier 3 countries to offer 2
the rest to offer 3
Can someone share me your script? I'm much appreciated with rep+
Reply
Share This Thread :

2018-10-30, 09:36 AM,
#2
(2018-10-30, 08:12 AM)immart247 Wrote: I also tried Geo redirection script in CPAElites toolbox but it has no default link, it means I have to add link for every country in the list.

The geo redirection script of the CPAElites toolbox doesn't work (currently): https://www.cpaelites.com/Thread-Geo-Red...esn-t-work

You could use the free Maxmind database for your own scripts. Or the paid service.

.

Please support the CPAElites staff and use the "Report" button in case of bad content or rule violations.



[Image: giphy.gif]

Automate your daily work with Bots!
Then you'll have more time to sleep. ;-)
Reply
2018-10-30, 09:38 PM,
#3
I am using a very basic script that I find on stackoverflow If I remember correctly.

Use https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 to find the country codes you want to redirect and then add them, I've added "US" and "AU" for United States and Australia for examples.

Replace the URL_DEFAULT to your url that all non redirected countries will be directed to.

I couldn't paste the code here as it looks messed up so I uploaded it to pastebin for you mate, hope that's not against the rules.

https://pastebin.com/1rbTJG5Y
Latest Thanks - View all

wixerzp(2018-11-03 04:17 PM) immart247(2018-10-31 03:43 AM) 

Check my  IG + CPA Journey Thread
Reply
2018-10-30, 10:01 PM,
#4
(2018-10-30, 09:38 PM)JenniN Wrote: I couldn't paste the code here as it looks messed up so I uploaded it to pastebin for you mate, hope that's not against the rules.

Oh? The PHP code button at the editor doesn't work for you?

(No, it's not against the rules, don't worry.)

The only problem I see: Services like ip2c.org won't last forever (like many others before) and/or limit the number of requests.

.

Please support the CPAElites staff and use the "Report" button in case of bad content or rule violations.



[Image: giphy.gif]

Automate your daily work with Bots!
Then you'll have more time to sleep. ;-)
Reply
2018-10-30, 10:33 PM,
#5
(2018-10-30, 10:01 PM)CharlieHarper Wrote:
(2018-10-30, 09:38 PM)JenniN Wrote: I couldn't paste the code here as it looks messed up so I uploaded it to pastebin for you mate, hope that's not against the rules.

Oh? The PHP code button at the editor doesn't work for you?

(No, it's not against the rules, don't worry.)

The only problem I see: Services like ip2c.org won't last forever (like many others before) and/or limit the number of requests.

I was using the "code" button but it was cutting the source code and only half was posted.

As for the ip2c.org issues, I am aware that it won't last forever but it gets the job done for the moment and for the volumes I want to Wink
Latest Thanks - View all

CharlieHarper(2018-10-30 10:45 PM) 

Check my  IG + CPA Journey Thread
Reply
2018-10-30, 10:45 PM,
#6
(2018-10-30, 10:33 PM)JenniN Wrote: I was using the "code" button but it was cutting the source code and only half was posted.

Thank you for this feedback. I'll check it soon.
Latest Thanks - View all

andrehakim(2018-11-03 01:06 PM) JenniN(2018-10-30 11:02 PM) 

.

Please support the CPAElites staff and use the "Report" button in case of bad content or rule violations.



[Image: giphy.gif]

Automate your daily work with Bots!
Then you'll have more time to sleep. ;-)
Reply
2018-10-31, 03:45 AM,
#7
(2018-10-30, 09:38 PM)JenniN Wrote: I am using a very basic script that I find on stackoverflow If I remember correctly.

Use https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 to find the country codes you want to redirect and then add them, I've added "US" and "AU" for United States and Australia for examples.

Replace the URL_DEFAULT to your url that all non redirected countries will be directed to.

I couldn't paste the code here as it looks messed up so I uploaded it to pastebin for you mate, hope that's not against the rules.

https://pastebin.com/1rbTJG5Y
the code is working. Thank you very much! It saved me a lot of time creating links on smarturl.it which I don't really like.
Reply
2018-10-31, 12:40 PM,
#8
(2018-10-31, 03:45 AM)immart247 Wrote:
(2018-10-30, 09:38 PM)JenniN Wrote: I am using a very basic script that I find on stackoverflow If I remember correctly.

Use https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 to find the country codes you want to redirect and then add them, I've added "US" and "AU" for United States and Australia for examples.

Replace the URL_DEFAULT to your url that all non redirected countries will be directed to.

I couldn't paste the code here as it looks messed up so I uploaded it to pastebin for you mate, hope that's not against the rules.

https://pastebin.com/1rbTJG5Y
the code is working. Thank you very much! It saved me a lot of time creating links on smarturl.it which I don't really like.

You're welcome mate.

Good luck with your earnings! Cool

Check my  IG + CPA Journey Thread
Reply


Related Threads
Thread Author Replies Views Last Post
  Do the language in landing page has to be the same language as GEO location? SupremeWarrior 9 553 2018-08-27, 12:17 PM
Last Post: Ana_AdCombo
  What are the ways to promote Geo Targeted CPA offers? SupremeWarrior 5 375 2018-08-15, 08:16 PM
Last Post: CharlieHarper
  movie search engine script ENCRYPT 7 393 2018-06-05, 12:49 AM
Last Post: CharlieHarper
  OGAds Content Locker Button Script? dictatorce 2 690 2018-04-17, 11:09 PM
Last Post: OPEarner
  looking for script to clean email list Med Fd 3 408 2018-03-08, 07:10 PM
Last Post: Med Fd





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

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