Modify line 136 of watchdog.module to provide a clickable IP address.
The following provides a way to resolve a logged IP address easily.
$output .= ' <tr><th>'. t('Hostname') .'</th><td><a href="http://www.whois.sc/' . $watchdog->hostname . '" target="_blank">' . $watchdog->hostname. '</a></td></tr>';
Something nice and easy to add in. Good to track strange people logged in to Drupal and doing stuff they maybe shouldn't be.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | jsomers_16221_whois.patch | 655 bytes | j.somers |
Comments
Comment #1
sneex commentedI vote +1 on this (I already added it myself, but) ... I vote for same window and not a new one -- maybe make it configurable?
$output .= '
";
Comment #2
forngren commentedI can't see why Drupal needs this feature, but on the other hand; why not?
Comment #3
LAsan commentedMoving to cvs
Comment #4
j.somers commentedI also found this useful and always did it myself.
Attached is a patch that uses http://whois.domaintools.com.
Comment #5
j.somers commentedForgot to change this.
On one hand I could doubt if functionality like this is really needed in core, but on the other hand there doesn't seem to be a way to add this using a hook.
Comment #6
chx commentedAnyone asked domaintools whether they want a barrage like this?
Comment #7
buddaAs its not an automated process, so there would not be a barrage of requests, unless the site admin went through clicking each IP address in the log one at a time.
Probably courteous to let them know Drupal is considering integrating their service though.
Comment #8
dries commentedI agree that we should check their terms of service and maybe even their privacy policy.
Comment #10
nancydruIsn't this a duplicate of #22494: Add IP lookup capabilities to the watchdog module?
Comment #11
devin carlson commentedYes, this is a duplicate. I'm marking this issue as the duplicate because it seems like more work seems to have been done in the other issue.
Duplicate of #22494: Add IP lookup capabilities to the watchdog module