Connecting Tech Pros Worldwide Help | Site Map

Whois IP search integrated into website.

  #1  
Old July 17th, 2005, 12:28 PM
James
Guest
 
Posts: n/a
As a security feature of my site, I want the IP details to be recorded
in certain situations.

I suppose I have to use the Rwhois server to do this, though I don't
know how to do that. Of course I would use any server, but the only
server I know that provides the service which works worldwide, is the
Rwhois server. I don't know how I would connect to it though.

Network Solutions has a website and example code, but it is written in
Perl and CGI, while I need to use PHP. The link to the software
including on-website demo is here:
http://www.rwhois.net/#Web_Clients

Any ideas/help appreciated!
James

  #2  
Old July 17th, 2005, 12:28 PM
Colin dot Horne at Gmail dot com
Guest
 
Posts: n/a

re: Whois IP search integrated into website.


Hi James

Why do you need to do a whois lookup for security?

I don't have time to write out a full script for you, but I can give
you some pointers that might help.

This page does some interesting things:
http://www.colinhorne.co.uk/~colin/phpresources/dns.php
(source: http://www.colinhorne.co.uk/~colin/p...urces/dns.phps)

These functions might help you:
gethostbyname()
gethostbyaddr()

Also, try this on a box with 'whois' on it:
<?php
system("whois colinhorne.co.uk");
?>

Hope this helps
--Colin Horne

  #3  
Old July 17th, 2005, 12:29 PM
R. Rajesh Jeba Anbiah
Guest
 
Posts: n/a

re: Whois IP search integrated into website.


James wrote:[color=blue]
> As a security feature of my site, I want the IP details to be[/color]
recorded[color=blue]
> in certain situations.
>
> I suppose I have to use the Rwhois server to do this, though I don't
> know how to do that. Of course I would use any server, but the only
> server I know that provides the service which works worldwide, is the
> Rwhois server. I don't know how I would connect to it though.[/color]

<snip>

http://groups.google.com/groups?selm=ccm8hq$144@odah37.prod.google.com

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Closed Thread