[drupal-devel] [feature] Add IP lookup capabilities to the watchdog
module
kbahey
drupal-devel at drupal.org
Tue May 10 17:56:33 UTC 2005
Issue status update for http://drupal.org/node/22494
Project: Drupal
Version: cvs
Component: watchdog.module
Category: feature requests
Priority: minor
Assigned to: Anonymous
Reported by: baudolino
Updated by: kbahey
Status: patch
This is very useful.
Not all apache installations enable DNS name resolution, and if you are
on a shared hosting that does not have it, you are out of luck.
This patch does the lookup selectively for links that are interesting
to the admin when viewing the logs.
Moreover, it provides way more info than just a name resolution every
did, or will do. You as the site admin can detect abuse, get
organization contacts, blacklisted status, ...etc.
whois.sc has been available for a while, and provides a lot of nifty
info. For example try http://whois.sc/drupal.org for some fun. Run it
on your domain and see more fun.
As far as ToS, this is something that needs to be checked.
kbahey
Previous comments:
------------------------------------------------------------------------
May 9, 2005 - 22:27 : baudolino
Attachment: http://drupal.org/files/issues/watchdog.add_IP_lookup.diff (972 bytes)
This small patch adds IP lookup capabilities to the watchdog module
using the free external site http://whois.sc. Basically, the IP becomes
clickable, and a new window opens which displays a lot of data about the
address in question. Might be useful for site administrators who need to
look at suspicious activites, spiders, harvesters etc.
I got this idea from the phpBB bulletin board software, which offers
this feature for administrators.
One line patch attached.
------------------------------------------------------------------------
May 10, 2005 - 08:46 : kbahey
+1 for this patch.
Shouldn't target="blank" read target="_blank" (with under score)?
------------------------------------------------------------------------
May 10, 2005 - 09:25 : Junyor
-1 for using the target attribute. That's browsers UI functionality.
------------------------------------------------------------------------
May 10, 2005 - 10:32 : Bèr Kessels
another -1 on target blank; As nielsen points out
(http://www.useit.com/alertbox/9605.html #9) opening new windows is
"Opening up new browser windows is like a vacuum cleaner sales person
who starts a visit by emptying an ash tray on the customer's carpet.
Don't pollute my screen with any more windows, thanks (particularly
since current operating systems have miserable window management).
"
------------------------------------------------------------------------
May 10, 2005 - 11:59 : baudolino
Attachment: http://drupal.org/files/issues/watchdog.add_IP_lookup_1.diff (957 bytes)
Updated version, removed "target=_blank".
------------------------------------------------------------------------
May 10, 2005 - 12:03 : chx
removed target? Then now I can +1 this.
------------------------------------------------------------------------
May 10, 2005 - 12:10 : killes at www.drop.org
Why is this usefull? Can't you set up Apache to do the looking up?
Just two random questions.
------------------------------------------------------------------------
May 10, 2005 - 12:42 : Chris Johnson
Several reasons:
1. Yes, Apache can be configured to do this. However, it is resource
intensive. Apache would have to do a DNS reverse lookup request for
every IP address. This is generally considered to be a bad idea on any
Apache server that has any kind of load. Thus, it will be turned off on
most hosting arrangements.
2. Not everybody runs Apache. :-)
3. It's convenient, somewhat useful and very lightweight to provide
it.
------------------------------------------------------------------------
May 10, 2005 - 12:46 : killes at www.drop.org
ok, more questions: How long is that service already there? How long
will it stay available? Does their TOS allow this kind of integration?
More information about the drupal-devel
mailing list