Page 1 of 2 12 LastLast
Results 1 to 20 of 40

Thread: Geo

  1. #1
    MMM
    MMM is offline Private Member
    Join Date
    October 2014
    Posts
    1,751
    Thanks
    455
    Thanked 712 Times in 497 Posts

    Default Geo

    Hi,

    I would like to set a pop up for US players that clicked "visit" on non-US casino.
    I use php redirect for exiting traffic /visit/

    Any ideas how it's done?

    Thank you,
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  2. #2
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    33,875
    Thanks
    4,510
    Thanked 9,268 Times in 5,958 Posts

    Default

    Basically, you will want to track the event of the clicking of the link, which would trigger the popup.

    Here are a few places that discuss tracking an event.
    http://stackoverflow.com/questions/9...ustom-solution
    https://mixpanel.com/help/reference/php
    https://www.gosquared.com/docs/tracking/events/
    https://segment.com/docs/libraries/php/

    I think a few of them tied their event tracking into analytics, and some of them may or may not offer a service, but it may help point you in the right direction.

    Rick
    Universal4

  3. The Following User Says Thank You to universal4 For This Useful Post:

    MMM (19 March 2016)

  4. #3
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,096
    Thanks
    432
    Thanked 2,333 Times in 1,555 Posts

    Default

    Would it not make more sense to geotarget the link itself so that instead of a pop up (which could get blocked/closed etc..) the /visit/ link displays a message to the user if they're trying to visit a casino that doesn't accept players from their country?

    Eg (for US players):

    1. User clicks link
    2. Php script checks user IP
    3. If the casino allows players from the US, redirect to casino landing page
    4. If the casino doesn't allow players from the US, show message: 'That casino doesn't accept US players, try Casino XXX instead' with a 'or visit Original Casino' as well just in case they still want to check it out.
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  5. #4
    MMM
    MMM is offline Private Member
    Join Date
    October 2014
    Posts
    1,751
    Thanks
    455
    Thanked 712 Times in 497 Posts

    Default

    Hi Baldidiot,

    I think that's what i meant, unless i didn't understand your post correctly. What's the difference between what you called a message and a popup?

    P.S. And if you know a simple method to do that since I am not a php expert.
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  6. #5
    ARZ's Avatar
    ARZ
    ARZ is offline Private Member
    Join Date
    April 2015
    Posts
    256
    Thanks
    66
    Thanked 74 Times in 62 Posts

    Default

    Your sites are running on Wordpress, so you can use many great plugins. If you´re interested, let me know, I can give you more info
    Nejlepší Výherní hrací automaty online zdarma! - zahrajte si z pohodlí domova
    Vyhraj.cz - nejlepší portál o casino bonusech v ČR
    Vyhraj.sk - nejlepší portál o casino bonusech na Slovensku
    Check the best casino bonuses and free spins every day!
    Confira as melhores ofertas de bônus de rodadas grátis no Brasil.

  7. #6
    MMM
    MMM is offline Private Member
    Join Date
    October 2014
    Posts
    1,751
    Thanks
    455
    Thanked 712 Times in 497 Posts

    Default

    Quote Originally Posted by ARZ View Post
    Your sites are running on Wordpress, so you can use many great plugins. If you´re interested, let me know, I can give you more info
    If you have something in mind then please do. One thing: i use W3Total cache so it needs to work with it.
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  8. #7
    Ares's Avatar
    Ares is offline Public Member
    Join Date
    September 2014
    Posts
    177
    Blog Entries
    6
    Thanks
    31
    Thanked 27 Times in 23 Posts

    Default

    Quote Originally Posted by ARZ View Post
    Your sites are running on Wordpress, so you can use many great plugins. If you´re interested, let me know, I can give you more info
    Hi,

    I think we are all interested.
    And I think we all have a level of WordPress programming knowledge.
    Geotargeting however looks like a mystery to me.

  9. #8
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,096
    Thanks
    432
    Thanked 2,333 Times in 1,555 Posts

    Default

    Quote Originally Posted by MMM View Post
    Hi Baldidiot,

    I think that's what i meant, unless i didn't understand your post correctly. What's the difference between what you called a message and a popup?

    P.S. And if you know a simple method to do that since I am not a php expert.
    Sorry I missed this before. I'm assuming by pop up you were talking about something in addition to the regular affiliate redirect. If it's just the page that's opened after clicking the link then I guess it's the same thing. Although because of the way adblockers work it's becoming recommended that outbound affiliate links are opened in the same window, not a new one.

    Just for clarity this is what I mean:

    Page On Your Site ---Click Link---> Intermediary Page ---Redirect---> Casino (or whatever)

    Where at the intermediary page step you're checking the IP of the visitor.

    I would do this using individual php pages for each link (eg: /go/casino-name/) that contains code that queries the IP and either passes the user through to the aff link, or displays a message (or redirects to a different page of your choice).

    To do this you'll need a database of IP's (maxmind is free) and some basic php knowledge. The actual code you need depends on how you're doing it.

    This is a fairly simple guide to getting the country ID and using it for links: http://www.softwareprojects.com/reso...ions-1391.html

    On their example they're changing the text of the page, whereas we want to change a redirect, but the principle is the same:

    Code:
    if($country=="US"){ header("Location: http://www.usacasino.com/");
    } 
    else 
    { 
    header("Location: http://www.nonusacasino.com/");
    }
    So the whole thing would look something like this:

    Code:
    
    <?php
    
    include("/home/your_folder/geoip.inc"); 
    $gi = geoip_open("GeoIP.dat",GEOIP_STANDARD); 
    $country = geoip_country_code_by_addr($gi, $REMOTE_ADDR); 
    geoip_close($gi); 
    
    if($country=="US"){ 
    header("Location: http://www.usacasino.com/");
    } 
    else 
    { 
    header("Location: http://www.nonusacasino.com/");
    }
    
    ?>

    I'm currently in the process of implementing something this on a new site, so haven't actually tested it yet. But the theory should be sound (unless anyone else knows otherwise?)

    * You could also set a cookie
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  10. The Following 2 Users Say Thank You to baldidiot For This Useful Post:

    Ares (2 April 2016), MMM (31 March 2016)

  11. #9
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,096
    Thanks
    432
    Thanked 2,333 Times in 1,555 Posts

    Default

    Ps. If you use cloudfare it looks like they can pass country info for you to query: https://support.cloudflare.com/hc/en...eolocation-do-

    No idea if that's on the free plan though...
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  12. #10
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    33,875
    Thanks
    4,510
    Thanked 9,268 Times in 5,958 Posts

    Default

    The example baldidiot listed above require server side includes to be enabled, often available at many hosts but at times may need to be turned on.

    Rick
    Universal4

  13. The Following User Says Thank You to universal4 For This Useful Post:

    MMM (31 March 2016)

  14. #11
    MMM
    MMM is offline Private Member
    Join Date
    October 2014
    Posts
    1,751
    Thanks
    455
    Thanked 712 Times in 497 Posts

    Default

    Quote Originally Posted by baldidiot View Post
    Just for clarity this is what I mean:

    Page On Your Site ---Click Link---> Intermediary Page ---Redirect---> Casino (or whatever)

    Where at the intermediary page step you're checking the IP of the visitor.
    Thank you guys!!

    Will check that option but I think will need to find someone to do that for me since I'm really not a php expert.

    Baldidot, by redirect page you mean like the /go/betfred.html (in your case) or visit/xxx.php pages (I use php for afflinks)?
    To add to this code that non US- goes on.and US - goes to US page?
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  15. #12
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,096
    Thanks
    432
    Thanked 2,333 Times in 1,555 Posts

    Default

    Quote Originally Posted by universal4 View Post
    The example baldidiot listed above require server side includes to be enabled, often available at many hosts but at times may need to be turned on.
    True, didn't think to mention this. Although come to think of it I've never had to ask for it to be enabled - anything that can run a cms like wordpress or joomla should be fine (as those use includes).
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  16. #13
    baldidiot is offline Private Member
    Join Date
    January 2010
    Posts
    5,096
    Thanks
    432
    Thanked 2,333 Times in 1,555 Posts

    Default

    Quote Originally Posted by MMM View Post
    Thank you guys!!

    Will check that option but I think will need to find someone to do that for me since I'm really not a php expert.

    Baldidot, by redirect page you mean like the /go/betfred.html (in your case) or visit/xxx.php pages (I use php for afflinks)?
    To add to this code that non US- goes on.and US - goes to US page?
    Yeah so your /visit/xxx.php page is what would contain the code.

    Are you using the: header("Location: http://www.nonusacasino.com/"); method of redirection? If so it's just a case of installing the geoip database and adding a few extra lines of code.

    Alternatively if you're using cloudfare and have the geolocation tool turned on the info will already be available to the page without the need for an additional database (I think, not tried it - purely going by the info on the cloudfare website: https://support.cloudflare.com/hc/en...eolocation-do-).

    So:

    Code:
    <?php
    
    if($country_code=="US"){ 
    header("Location: http://www.usacasino.com/");
    } 
    else 
    { 
    header("Location: http://www.nonusacasino.com/");
    }
    
    
    ?>
    That's for redirecting US traffic to another casino, but you could also use it to send the user to a page on your site where you explain that the casino they were trying to visit doesn't accept US players and then provide a list of US friendly casinos.

    Or you could put the info on the page as a message by replacing the usa casino redirect with text. Eg:

    Code:
    echo "Here is the message you show to US visitors";
    onlinegamblingwebsites.com - Formally known as goodbonusguide.

    Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.

  17. #14
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    33,875
    Thanks
    4,510
    Thanked 9,268 Times in 5,958 Posts

    Default

    I most often do not enable server side includes on sites unless needed and wordpress runs fine.

    Some hosts have them automatically enabled if they support it and some do not, but your method will work fine as long as they are turned on, I just wanted to mention that in case someone has trouble using that method.

    I am considering giving that a go on a site to see how well it works as I have not done much with any geolocation.

    Rick
    Universal4

  18. #15
    MMM
    MMM is offline Private Member
    Join Date
    October 2014
    Posts
    1,751
    Thanks
    455
    Thanked 712 Times in 497 Posts

    Default

    Quote Originally Posted by baldidiot View Post
    Yeah so your /visit/xxx.php page is what would contain the code.

    Are you using the: header("Location: http://www.nonusacasino.com/"); method of redirection? If so it's just a case of installing the geoip database and adding a few extra lines of code.
    Yes, I am. Also use cloudflare, so it might be much simpler than i thought.


    Quote Originally Posted by universal4 View Post
    I most often do not enable server side includes on sites unless needed and wordpress runs fine.

    Some hosts have them automatically enabled if they support it and some do not, but your method will work fine as long as they are turned on, I just wanted to mention that in case someone has trouble using that method.
    Universal4
    Still have no idea what are server side includes are and what are their influences, but will check tomorrow.

    Thank you both for time and very helpful posts
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  19. #16
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    33,875
    Thanks
    4,510
    Thanked 9,268 Times in 5,958 Posts

    Default

    Here is the wiki on server side includes
    https://en.wikipedia.org/wiki/Server_Side_Includes

    And here is a brief explanation of why more hosts are considering not enabling server side includes unless clients need them
    https://www.owasp.org/index.php/Serv...I%29_Injection

    Sorry about the semi off topic but like I said above, many hosts do currently offer this so the methods detailed above will work in most cases.

    Rick
    Universal

  20. #17
    MMM
    MMM is offline Private Member
    Join Date
    October 2014
    Posts
    1,751
    Thanks
    455
    Thanked 712 Times in 497 Posts

    Default

    Hey,

    yes, expected to see that there might be some risks involved.

    Btw, should that work with /visit/casino.php redirects?
    Best casinos to play slot machines online for real money. Reviews of best Real Money Casinos online.
    Check OnlineBlackjackExplorer for ratings of the best casinos to play blackjack online. Which games offer the lowest house edge, as well as free blackjack games, live dealer and mobile blackjack sites.

  21. #18
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    33,875
    Thanks
    4,510
    Thanked 9,268 Times in 5,958 Posts

    Default

    I do think it works that way, and in fact someone else asked me to look into that the other day, but I think it works fine on an intermediate or a "go/visit" page.

    Providing the server parses the database or list and is provided the information to the ip correctly it should work fine.

    The include part is part of visit page and it must answer the "if" statement so as long as the correct answer is given from the list of ip's and providing the visitor is not hiding or otherwise using a proxy ip it should provide the correct results.

    Rick
    Universal4

    The above is a somewhat simplified answer on purpose.

  22. #19
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    33,875
    Thanks
    4,510
    Thanked 9,268 Times in 5,958 Posts

    Default

    I do think it works that way, and in fact someone else asked me to look into that the other day, but I think it works fine on an intermediate or a "go/visit" page.

    Providing the server parses the database or list and is provided the information to the ip correctly it should work fine.

    The include part is part of visit page and it must answer the "if" statement so as long as the correct answer is given from the list of ip's and providing the visitor is not hiding or otherwise using a proxy ip it should provide the correct results.

    Rick
    Universal4

    The above is a somewhat simplified answer on purpose.

  23. #20
    ARZ's Avatar
    ARZ
    ARZ is offline Private Member
    Join Date
    April 2015
    Posts
    256
    Thanks
    66
    Thanked 74 Times in 62 Posts

    Default

    Quote Originally Posted by Ares View Post
    Hi,

    I think we are all interested.
    And I think we all have a level of WordPress programming knowledge.
    Geotargeting however looks like a mystery to me.
    Hi

    There are plugins (in most cases just the paid ones) who can display banners in the base of IP, that is currently visiting your website. Adrotate has it for sure, but it´s limited via some numbers in the cheap version. For Popups Even the WPADGURU has some of these, but I bought this plugin, and never really understood it It just have its own behaviour, even when I setted up the GEO, it still keeped appearing for all customers. It´s very hard to test it from other countries..

    I am currently testing one of the new plugins, which seems very promisable, I will let you know the ending
    Nejlepší Výherní hrací automaty online zdarma! - zahrajte si z pohodlí domova
    Vyhraj.cz - nejlepší portál o casino bonusech v ČR
    Vyhraj.sk - nejlepší portál o casino bonusech na Slovensku
    Check the best casino bonuses and free spins every day!
    Confira as melhores ofertas de bônus de rodadas grátis no Brasil.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •