Postponed (maintainer needs more info)
Project:
Whois lookup
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2011 at 11:26 UTC
Updated:
15 Apr 2013 at 20:30 UTC
Hi, I found this module very useful !
Why not integrate it with the core watchdog ? I mean, on .../admin/reports/hits there are the following columns: Timestamp, Page, User and Operations --> User could be merged with additional info coming from IP Lookup.
What do you think ?
Comments
Comment #1
helmo commentedYou might be able to do this with a theme function that rewrites the ip as a link to the whois lookup page.
But don't over estimate the value of whois information for an IP. It just gives you the owner of the IP range the user is coming from.
Comment #2
mandreato commentedThank you helmo for the reply !
It could be something like #22494: Add IP lookup capabilities to the watchdog module...
I know that whois info is not so much detailed, but it would be very useful as well: for example, when Google crawlers are analyzing the website, it is very difficult to distinguish them from real visitors because the log reports "anonymous" in every case.
Instead a short info on provider name would clarify immediately who is in.
Comment #3
helmo commentedWould be really cool if we could 'solve' that issue...
I had a look with devel_themer, but it didn't have a good hit to a usable theme function.
The hint about hook_menu_alter() would require wrapping around statistics_access_log() and modifying the render array.
Find the 'Hostname' row in $build['statistics_table']['#rows'] and rewrite it as a link to /whois/%s
But there has to be a nicer way to interact with this render array,
Comment #4
mandreato commentedWhat about this #381802: Have theme_username() show hostname for anonymous users if available ?
Comment #5
helmo commentedI think I agree with Dries's remark in http://drupal.org/node/381802#comment-1299522
theme_username should not be called in this case, and we would need something like theme_hostname()
Comment #6
helmo commentedPostponing this as I don't see a clean way to this this without hacking core...
Comment #7
gpk commentedhttp://drupal.org/project/views_watchdog and a Views ?formatter perhaps? Wld be good to have a reverse DNS option as well but maybe doesn't belong here.
Comment #8
helmo commentedgpk: would you be able to provide a patch for that?
I'd be happy to include it.
Comment #9
helmo commented