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 403,298 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,876 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

isp auto-detect

Join Date: Sep 2007
Posts: 74
Reputation: cwarn23 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 6
cwarn23 cwarn23 is offline Offline
Junior Poster in Training

isp auto-detect

  #1  
May 10th, 2008
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
Signature note:
Do not edit the registry just because someone on the forum says so. Do some research on the internet before editing the registry.
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 7:01 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC