1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

How can I tell if a spider is visiting my PHP page?

Discussion in 'Web Design & Development' started by vidyaishaya, Aug 3, 2006.

Thread Status:
Not open for further replies.
  1. vidyaishaya

    vidyaishaya Thread Starter

    Joined:
    Oct 26, 2001
    Messages:
    84
    I have a client who is wanting me to keep tracks of page-views for advertising banners. He doesn't want me to include visits by spiders, etc.

    How can I tell if the page is being visited by spiders? Can I use one of the following:

    $_SERVER['SERVER_NAME']

    $_SERVER['REMOTE_HOST']

    $_SERVER['REMOTE_ADDR']

    and how would they look if a spider visited?

    Or am I really off-track, and there's another way to do this?

    Thanks

    ..Vidya
    www.webwisesage.com
     
  2. GCDude

    GCDude

    Joined:
    Apr 1, 2005
    Messages:
    394
  3. vidyaishaya

    vidyaishaya Thread Starter

    Joined:
    Oct 26, 2001
    Messages:
    84
    Thanks.

    And yeah -- I pretty much figured that would be the way it works,
    too bad there's not a PHP system variable that says whether it's a spider or not.

    ...Vidya
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/489084

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice