Results 1 to 7 of 7

Thread: Checing for a SubString -[RESOLVED]-

Threaded View

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Checing for a SubString -[RESOLVED]-

    I am using this code in my counter to stop it counting known robots as unique hits
    PHP Code:
    if (strpos($_SERVER['HTTP_USER_AGENT'],'SurveyBot'))
    {
      
    $IsRobot true;

    This is used with more elseif's in order to go though all the robots I know of so far. However I still seem to be getting my Counter creating records in my Db that say the User Agent is "SurveyBot/2.3 (Whois Source)" even witht he code above. Have I made a mistake in the code above you do you recon the problem may be with another part in my code?

    Thanx for any help.
    Last edited by Electroman; Apr 21st, 2004 at 11:48 AM.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width