|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Making a Googlebot log with perl and SSI.
Would this code work for making a log using perl and SSI?
$database = "/home/sites/site21/web/cgi-local/google.txt"; if ($ENV{'HTTP_USER_AGENT'} =~ /googlebot/) { open (DATABASE,">>$database"); print DATABASE " $ENV{'REMOTE_ADDR'} - $ENV{'HTTP_USER_AGENT'}\n"; close(DATABASE); } This is the exact same code that I used for a contest to get visitors E-mail addresses. I put this code in the perl script that I use for the top of my page money maker text links area. |
|
#2
|
||||
|
||||
|
For any one that does SSI using cgi, yes, it works!!!
http://www.world-of-nintendo.com/cgi-local/google.txt Now to try to get the time and URL!!!
__________________
Get Visitors Quick - FREE!!!
SEO Contests - v7ndotcom Elursrebmem - carcasherdotcom seocontest |
|
#3
|
|||
|
|||
|
n1... looks nice.
I get mine emailed to me, but this is a good way too, perhaps I'll modify my cron job to generate a page once a day or something.
__________________
You've just read the posting of an airhead, take no notice whatsoever. |
![]() |
| Viewing: SEO Chat Forums > Google > Google Optimization > Making a Googlebot log with perl and SSI. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|