![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jan 2002
Location: Ny
Posts: 4,110
|
Advanced Geo Mobile Redirect script?
There are a lot of different ways to monetize mobile and here is what I want to do but it seems too complicated.
All Mobile users will get redirected US + Canada redirect to URL1,URL2,URL3 etc at random Germany will go to URL A, URL B France URL C Russia URL D Argentina URL E etc THE REST URL F The ones I find online are the basic if US/Canada go to URL A ALL ELSE go to URL B
__________________
Hey surfers how about some The Best Porn Sites |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
I have it.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jan 2002
Location: Ny
Posts: 4,110
|
__________________
Hey surfers how about some The Best Porn Sites |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jul 2010
Posts: 846
|
__________________
Bitcoin Webcams | Send your EU traffic here | Cheap Shared & Reseller Adult Hosting |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
GFY HALL OF FAME DAMMIT!!!
Join Date: Jan 2002
Location: that 504
Posts: 60,840
|
Sounds yummy
__________________
![]() Want an Android App for your tube, membership, or free site? Need banners or promo material? Hit us up (ICQ Fletch: 148841377) or email me fletchxxx at gmail.com - ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,063
|
Pretty basic php once you've got the maxmind country lite db...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Apr 2002
Location: na
Posts: 269
|
ip2nation.com - this should do the trick
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Industry Role:
Join Date: Aug 2003
Location: Vegas and Los Angeles
Posts: 2,122
|
Quote:
__________________
The Only Time When Success Comes Before Work Is In A Dictionary. Did you ever notice: When you put the 2 words 'The' and 'IRS' together it spells 'Theirs.' |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
|
Doing it at the script (PHP, etc...) level is easy, however you probably want the webserver to handle that instead...assuming you use Apache, the key directive you will need is for the randomness: RewriteMap
Example: let's say you create /my/dir/de_map.txt and it contains this line: dynamic url1|url2 (as many as you like) Here could be your Germany for example redirect section: RewriteMap servers rnd:/my/dir/de_map.txt RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^DE$ RewriteRule ^(.*)$ http://${servers:dynamic}/$1 [P,L] Of course, you should have your conditions to check whether it's mobile or not as well before that stuff, and make sure MaxMind mod_geoip is installed. Note: Since its 5am here and Im just tossing this out quick from memory, you may wish to double-check the syntax ![]()
__________________
Skype variuscr - Email varius AT gmail |
![]() |
![]() ![]() ![]() ![]() ![]() |