hi..
i want to make a record of all the User-Agent fields of the visitor.
to be more specific. i want to maintain a lot of all the User-Agent fields to know which crawlers are visiting my website.
so..
in my every server scipt should i include code for storing $_SERVER['HTTP_USER_AGENT'] variable?
isnt there any other method for doing this.
i mean, since i am using apache server. in apache configuration isnt there any option to make a log of required HTTP HEADER FIELDS?????
want to record all vistors User-Agents
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
I have considered creating something along that line with the intent to have the script email me when it detects a new bot/spider/crawler in the useragent field so I can personally study various spiders crawling my website. I'm still too much of a PHP noob to do this though if you manage to figure out your original goal please let me know. 