I have been designing a security system to stop bots from spamming my forum. Basically, it will check if there is any isp name detected from the ip address then if there is no detected isp, the submitted post will not be made. I know to detect the ip address, I simply use:
$ip=$_SERVER[REMOTE_ADDR];
However it will only get the ip numbers. I need a php script which will only get the isp so i can do something along the lines of the following.
if($isp='') { } else {
//rest of code
}
The above code is just a sketch of what I think it will look like but I just need to be able to get the isp information in the $isp variable. I have searched and searched all over google and the hotscripts website and still haven't found the answer. Would anybody here be able to provide any links or ways to find the isp without any other info being bundled in the defining of the $isp variable. An example of what the data stored in the $isp variable would look like is:
qld.bigpond.net.au
or
nyc.res.rr.com
Thanks in advance