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,
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.
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
MMM (19 March 2016)
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.
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.
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.
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.
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:
So the whole thing would look something like this:Code:if($country=="US"){ header("Location: http://www.usacasino.com/"); } else { header("Location: http://www.nonusacasino.com/"); }
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.
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.
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
MMM (31 March 2016)
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.
onlinegamblingwebsites.com - Formally known as goodbonusguide.
Gambling Domains: Small clear out of some of the domains we've been hoarding - see the spreadsheet here.
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:
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.Code:<?php if($country_code=="US"){ header("Location: http://www.usacasino.com/"); } else { header("Location: http://www.nonusacasino.com/"); } ?>
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.
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
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.
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
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.
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.
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.
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 itIt 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.