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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-15-2012, 10:52 PM   #1
srockhard
Retired
 
srockhard's Avatar
 
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
srockhard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2012, 11:14 PM   #2
shake
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
shake is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2012, 11:34 PM   #3
srockhard
Retired
 
srockhard's Avatar
 
Industry Role:
Join Date: Jul 2011
Location: PDXXX
Posts: 1,976
Quote:
Originally Posted by shake View Post
Yes, use something like maxmind geoip, and a couple lines of php code.
Since I don't know PHP is there already written anywhere that you know of? Would this pretty easy to have custom?
__________________
Piper Pines
srockhard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2012, 12:55 AM   #4
JamesM
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>
in above code, you just have add specific country codes from which traffic and the target url

like this
Quote:
case "IN" :
document.location.href = "http://indiatraffic.com"
break;

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

Last edited by JamesM; 12-16-2012 at 01:05 AM..
JamesM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2012, 03:39 AM   #5
srockhard
Retired
 
srockhard's Avatar
 
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
srockhard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2012, 06:06 AM   #6
JamesM
Confirmed User
 
Industry Role:
Join Date: Nov 2012
Posts: 732
Quote:
Originally Posted by srockhard View Post
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?
access this link

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 ''; }
you can catch every variable from above list.,

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
JamesM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2012, 06:14 AM   #7
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,038
Quote:
Originally Posted by JamesM View Post
access this link

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 ''; }
you can catch every variable from above list.,

like the script i posted b4 using geoip_country_code()

you can set to any of the above.

try it.,
I did not know they where doing that - I have been using the DB on my own server - I will have a look at the rate limits, I might use that instead....

Thanks
__________________
-

Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels
EddyTheDog is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2012, 10:42 AM   #8
Oracle Porn
Affiliate
 
Oracle Porn's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Icq: 94-399-723
Posts: 24,432
Quote:
Originally Posted by JamesM View Post
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>
in above code, you just have add specific country codes from which traffic and the target url

like this



hope this helps.,
is it possible to use my own maxmind geo ip (on my server) rather then use theirs?
__________________


Oracle Porn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2012, 01:01 PM   #9
srockhard
Retired
 
srockhard's Avatar
 
Industry Role:
Join Date: Jul 2011
Location: PDXXX
Posts: 1,976
Quote:
Originally Posted by JamesM View Post
access this link

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 ''; }
you can catch every variable from above list.,

like the script i posted b4 using geoip_country_code()

you can set to any of the above.

try it.,

I really appreciate your help! Works perfectly!
__________________
Piper Pines
srockhard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2012, 03:53 PM   #10
JamesM
Confirmed User
 
Industry Role:
Join Date: Nov 2012
Posts: 732
Quote:
Originally Posted by EddyTheDog View Post
I did not know they where doing that - I have been using the DB on my own server - I will have a look at the rate limits, I might use that instead....

Thanks
http://dev.maxmind.com/geoip/javascript

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:
Originally Posted by Oracle Porn View Post
is it possible to use my own maxmind geo ip (on my server) rather then use theirs?
i guess , its possible. but you have to update maxmind geo ip database file on your server , every month.

Quote:
Originally Posted by srockhard View Post
I really appreciate your help! Works perfectly!
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
JamesM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2012, 04:04 PM   #11
seeandsee
Check SIG!
 
seeandsee's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Europe (Skype: gojkoas)
Posts: 50,945
this scripts looks good, but serving it from your own server just using their db would be even better
__________________
BUY MY SIG - 50$/Year

Contact here
seeandsee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2012, 04:06 PM   #12
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
or you can use geoplugin
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202

Last edited by borked; 12-16-2012 at 04:12 PM..
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-16-2012, 04:10 PM   #13
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,038
Quote:
Originally Posted by borked View Post
or you can use geoplugin
That is an awesome API as well.
__________________
-

Chaturbate Script - https://gfy.com/fucking-around-and-b...er-issues.html - Now supports White Labels
EddyTheDog is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
geo tagging, geo target, geo tracking
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.