User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 423,824 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,870 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

Based on IP address change the info of a site

Join Date: May 2008
Posts: 31
Reputation: rgviza is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 5
rgviza rgviza is offline Offline
Light Poster

Re: Based on IP address change the info of a site

  #2  
May 14th, 2008
Originally Posted by Suhacini View Post
Hi,
Can I change the information of a site depending on ip address.

For example:
I have different folders for each geographic location, say for USA it should show a different site, for UK it should show a different site, like wise depending on the IP address it should go to that particular folder or index file.

Is tht possible using php?

There are two ways of doing this. One is to buy the MaxMind database, another is to do whois calls using a socket (not through their web interface!) and cache the netblock results so you don't hammer whois and get yourself banned.

-r
Reply With Quote  
All times are GMT -4. The time now is 3:11 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC