Debt Consolidation - Just Holden Commodores - Debt Consolidation - Debt Consolidation - Kamala

PDA

View Full Version : Show ONLY to certain regions or states?


painthappy
Oct 28th 2008, 10:38 am
I want to show some text or whatever to only certain regions. I want to run a contest on one of my sites, but only for 1 state at a time. It's a 50 states in 50 days contest.

Anyhow... I know you can figure out where someone lives by the IP address, i've seen them on scammy sites and what not.

How do I use that for my contest?

Say I want to do something for the state of california to start. Is there a way to figure out the IP address range? Or use "ereg" to do this?

Thanks in advance. I've looked around but no one seems to know how to do this.

keyaa
Oct 28th 2008, 10:48 am
You need a GEO-IP-database and code to use it.
Here's both for free: http://software77.net/geoip-software.htm

painthappy
Oct 28th 2008, 11:15 am
I was hoping for something a bit more simplistic....

keyaa
Oct 28th 2008, 11:29 am
This is how it's done.

painthappy
Oct 28th 2008, 11:40 am
Well, I just looked at the database and this tells me the country only.... nothing more specific.

keyaa
Oct 28th 2008, 12:52 pm
There are more detailed databases available, though I don't know of any free ones.
http://www.maxmind.com/app/region should suffice for your needs

!Unreal
Oct 28th 2008, 6:18 pm
You can do it nationally but not within a country. Its too specific. You would stop most people but there would also be an awful lot who slip through.

stickycarrots
Oct 28th 2008, 6:19 pm
You need a GEO-IP-database and code to use it.
Here's both for free: http://software77.net/geoip-software.htm
Thank you very much. I am going to give that a look myself :)