Firestarter Posted December 23, 2006 Share Posted December 23, 2006 I use the following to find a url on a page and help my script follow it.if (preg_match("/[^\n]+\-$ipA\-$ipB\-\d+\-\d+[^\s]*? \(\<ahref=\"(\/cgi-bin\/whois\.pl\?queryinput\=[^\"]+)\"\>[^\n]+\-$ipA-$ipB-\d+\-\d+\-1\<\/a\>/i",$result,$matches)) {but if it comes to a url like this it don't work.http://ws.arin.net/cgi-bin/whois.pl?queryinput=!%20NET-209-19-88-0-1if the url is http://ws.arin.net/cgi-bin/whois.pl?queryinput=!%20NET-65-223-207-144-1 or http://ws.arin.net/cgi-bin/whois.pl?queryinput=!%20NET-70-187-0-0-1 it works fineit only fails when there is only one 0 at the endI use this for a whois script to access arin.netfull script source is at http://sftp.biz/scripts/whois/index.txtyou can use it by http://sftp.biz/scripts/whois/index.phpAny help would be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
Firestarter Posted December 23, 2006 Author Share Posted December 23, 2006 I ended up solving this on my own I think. The image below should show your isp name. Only problem is some small isp's use ip address blocks from some larger company's and it don't always work but works for just about all the isp's.[img]http://sftp.biz/scripts/counter/image.php?site=test[/img]The source is at http://sftp.biz/scripts/whois/whois.txt Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.