|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I feel really stupid for asking but...how exactly does everyone seem to know (down to the day!) when they've been crawled? And how do you know who it is that has crawled?
Is there an easy way to check this, other than digging into logs and webstats? |
|
|||
|
Hi Diva,
It might be helpful to get a list of the IP addresses used by various crawlers. Check out http://www.searchengineworld.com/spiders/spider_ips.htm |
|
|||
|
I had trouble with my host to check my log file so I had to make my own log file. I got it from a website and have NO memory of where I got it from so if the owner of this wants to take credit, please do so.
Put this text in your index file and rename it as a index.php Place this just below the header. I included the </head> as a guide. </head> <?php $file = fopen("log.html", "a"); $time = date("H:i dS F"); fwrite($file, "Time: $time " ); if( $REMOTE_ADDR != null) { fwrite($file,"Ip address: $REMOTE_ADDR "); } if( $HTTP_REFERER != null) { fwrite($file,"Referer: $HTTP_REFERER "); } fwrite($file,"Browser: $HTTP_USER_AGENT<hr/>"); fclose($file) ?> Next...you want to create a new file and call it log.php and put this code into it... <?php $file = fopen("log.html", "a"); $time = date("H:i dS F"); fwrite($file, "Time: $time " ); if( $REMOTE_ADDR != null) { fwrite($file,"Ip address: $REMOTE_ADDR "); } if( $HTTP_REFERER != null) { fwrite($file,"Referer: $HTTP_REFERER "); } fwrite($file,"Browser: $HTTP_USER_AGENT<hr/>"); fclose($file) ?> Finally, create an empty file called log.html Very important to set the permissions on the log file so that it can be written too. The recommendation was to give it a 7 7 7 permission, but I changed mine and only look at the file via Dreamweaver so that jo schmo cant just look up this info. Also, remember to empty it out every so often otherwise it can get quite big. Hope this helps. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |