Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

RE: RE: RE: Poor Man's Web Logger

by btrott (Parson)
on Apr 06, 2000 at 22:51 UTC ( #7064=note: print w/ replies, xml ) Need Help??


in reply to RE: RE: Poor Man's Web Logger
in thread Poor Man's Web Logger

A question about this REMOTE_HOST stuff--generally, server admins disable the hostname translation because it slows down the server, correct? I agree that it's the "sane" thing to do--but in this case, aren't you sort of defeating the purpose by doing the hostname translation yourself?

The whole point, I thought, was to disable runtime hostname translation, because it slows things down; you seem to agree, so why re-introduce this step? Why not just log IP addresses, then run a cron job later as part of your stat analysis to do the hostname translation?

Just something to think about. If I'm missing the main issues, let me know.


Comment on RE: RE: RE: Poor Man's Web Logger
RE: RE: RE: RE: Poor Man's Web Logger
by comatose (Monk) on Apr 06, 2000 at 22:52 UTC

    What you say is true to a certain extent. However, this logger is for when you don't have access to regular log files. My dialup ISP actually lets me do CGI in my home directory but doesn't let me have access to log files.

    And since my site gets about 4 or 5 visitors a day, the system hit is almost nil. If I were getting a visitor a minute, I might change it. Also as it is, it's only doing one lookup per page. That's a lot less than the standard number of lookups for a full page (html plus images).

RE: RE: RE: RE: Poor Man's Web Logger
by turnstep (Parson) on Apr 06, 2000 at 22:59 UTC

    I think in this case, the server parses more than just his page, and more than just his domain, perhaps. This is just his way of "turning it back on" even though the sysadmin for the server that hosts his site has it turned off. Just a guess.

    I have sites that have it both ways. btrott has a good point, however: doing it later would also allow you to cache the answers, freeing some (perhaps a lot) of calls to gethostbyaddr. Unless it is a really, really busy page, however, it probably does not hurt too much to look it up each time.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://7064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-12-27 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls