![]() |
![]() |
![]() |
||||
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 |
Retired
Industry Role:
Join Date: Jul 2011
Location: PDXXX
Posts: 1,976
|
Geo WHAT? Geotracking? Tagging? Help here.
Using one ad, is it possible to clickthrough to a specific page depending on the users geo location?
For instance if someone in Alaska clicked the ad then it might show a site about shoveling snow but if someone in Hawaii clicked the ad then it would show a site about surfing. Is this possible? What is it called and where can I get a script to do this?
__________________
Piper Pines |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
frc
Industry Role:
Join Date: Jul 2003
Location: Bitcoin wallet
Posts: 4,664
|
Yes, use something like maxmind geoip, and a couple lines of php code.
__________________
Crazy fast VPS for $10 a month. Try with $20 free credit |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Retired
Industry Role:
Join Date: Jul 2011
Location: PDXXX
Posts: 1,976
|
Since I don't know PHP is there already written anywhere that you know of? Would this pretty easy to have custom?
__________________
Piper Pines |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Industry Role:
Join Date: Nov 2012
Posts: 732
|
here you go
Code:
<html> <head> <script src="http://j.maxmind.com/app/geoip.js" type="text/javascript"></script> <script type="text/javascript"> switch(geoip_country_code()){ case "AT" : document.location.href = "http://austriatraffic.com"; break; case "CH" : document.location.href = "http://switzerlandtraffic.com" break; case "DE" : document.location.href = "http://germantraffic.com" break; case "IN" : document.location.href = "http://indiatraffic.com" break; default : document.location.href = "http://othertraffic.com.com" break; } </script> </head> </html> like this Quote:
hope this helps.,
__________________
![]() Ex GF Films | Grab Dollars Up To 80% Rev-Share | 255 Day Cookie | Legal Content | Variety of Promo Tools | CCBill Program | GF Niche james[at]grabdollars[dot]com | ICQ::611-99-zero-zero-20 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Retired
Industry Role:
Join Date: Jul 2011
Location: PDXXX
Posts: 1,976
|
This looks real good...I will give it a try tomorrow. What about geo codes on the state and city level...all of which will be in the United States? Is it possible to get that specific?
__________________
Piper Pines |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Nov 2012
Posts: 732
|
Quote:
http://j.maxmind.com/app/geoip.js you will get something like this Code:
function geoip_country_code() { return 'DE'; } function geoip_country_name() { return 'Germany'; } function geoip_city() { return 'Berlin'; } function geoip_region() { return '16'; } function geoip_region_name() { return 'Berlin'; } function geoip_latitude() { return '52.5167'; } function geoip_longitude() { return '13.4000'; } function geoip_postal_code() { return ''; } function geoip_area_code() { return ''; } function geoip_metro_code() { return ''; } like the script i posted b4 using geoip_country_code() you can set to any of the above. try it.,
__________________
![]() Ex GF Films | Grab Dollars Up To 80% Rev-Share | 255 Day Cookie | Legal Content | Variety of Promo Tools | CCBill Program | GF Niche james[at]grabdollars[dot]com | ICQ::611-99-zero-zero-20 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Just Doing My Own Thing
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,038
|
Quote:
Thanks
__________________
- Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Affiliate
Industry Role:
Join Date: Oct 2002
Location: Icq: 94-399-723
Posts: 24,432
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Retired
Industry Role:
Join Date: Jul 2011
Location: PDXXX
Posts: 1,976
|
Quote:
I really appreciate your help! Works perfectly!
__________________
Piper Pines |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | ||
Confirmed User
Industry Role:
Join Date: Nov 2012
Posts: 732
|
Quote:
Code:
Free use of the service is allowed, if the following link is included on your website: This website uses <a href="http://www.maxmind.com/en/javascript">MaxMind's GeoIP JavaScript Service</a> Quote:
please take a look at http://dev.maxmind.com/geoip/javascript and imho , you should use something with php as this method wont work if browsers have javascript disabled. thanks
__________________
![]() Ex GF Films | Grab Dollars Up To 80% Rev-Share | 255 Day Cookie | Legal Content | Variety of Promo Tools | CCBill Program | GF Niche james[at]grabdollars[dot]com | ICQ::611-99-zero-zero-20 |
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Just Doing My Own Thing
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,038
|
Quote:
__________________
- Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels |
|
![]() |
![]() ![]() ![]() ![]() ![]() |