GeoIP to Block Certain Cities

kingofsp

WF Premium Member
Mar 1, 2008
5,325
152
0
Los Angeles
I tried to figure this out a while back but ultimately gave up. It would be really helpful if I could get it to work now.

I think the problem may have been that the site uses MaxMind GeoLite Country in conjunction with PhpBay to show auctions in the country of the visitor by default, and that was causing issues.

Anyone know how I would go about blocking just a few particular cities (or just have them redirected to a page on my site saying it's not available)? I'd like to keep the MaxMind running as is, if possible.

Your help would be very much appreciated.

Thx!
 


I would think if you had a separate php that got included at the top of each page you could pull the city+state and base it off that. Pretty easy if you're planning on just redirecting them, since then you could shoot back the header() right off the bat to the browser.

Hit me up on IM if you need more details, I think you already had me added in the past.