Forum Moderators: phranque

Message Too Old, No Replies

redirect by ip address

how do i do it?

         

StuntasticAudi

8:08 pm on Feb 16, 2006 (gmt 0)

10+ Year Member



I need to have my visitors redirected to a specific site based on their IP address. My site is in PHP how would i do that. I did some google research and it seems like i have to get a database with all the ip address ranges. Does anyone know any scripts or software that does that. What are your suggestions?

physics

4:19 am on Feb 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The implementation in PHP code isn't that complicated but you'll proabably need a custom script with a backend admin where you can add ip ranges. Or at the least a .txt file with ip ranges that you can edit.