How to view web crawler records on the apache server

Source: Internet
Author: User

Q: On the Apache server, how can I check which website crawlers have crawled on my website or which IP addresses have accessed our website?

A: Access Logging through the Apache server!

The access log name of the Apache server is named access_log by default in linux, and the access. log file is used in windows.

How to configure: configure the following two statements in the httpd. conf file:

LogFormat "% h % l % u % t \" % r \ "%> s % B" common
CustomLog/home/admin/work/hz-jean/com. jean. deploy/logs/access_log common

The first sentence defines the log format, and the second sentence defines the location where logs are stored.

Earlier versions (earlier than 2.0) of Apache may use transferLog instead of CustomerLog.

LogFormat "% h % l % u % t \" % r \ "%> s % B \" % {Referer} I \ "\" % {User-agent} I \ ""

TransferLog logs/access_log

How to view access logs:

 
 

 
Enter the previous IP address in the IP address query, and the queryer will help you find its HOSTNAME, such as Baidu spider or Zhejiang Telecom.



Author's fruit candy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.