It would be simpler to use thier hostname, or thier useragent, each crawler on the web uses a unique user agent, you could make an array of those an if(array_key_exists()) exit; ips can change, so use a hostname or useragent.
Useful script here: http://forums.digitalpoint.com/showpost.php?p=1827807&postcount=8 http://forums.digitalpoint.com/showthread.php?t=186928
Sorry, was talking about the thread-starter. I want to ignore, possibly by user-agent(GoogleBot) or something like that. I did use your script and it does work great, but I wanted to link to some additional information about IP and what not and keep it on my site to keep visitors there
I actually have an ip tool there too. If you're talking about an ip2location, thats possible to do too. u'll need a db to match ip ranges.
Good script overall. But not a smart step to die on the user. I recommend removing all the die's from the coding, an error message "Please check back later" is more professional. Peace,