Results 1 to 6 of 6

if ($visitor != BOT) {

This is a discussion on if ($visitor != BOT) { within the Off-Topic & Chit Chat forums, part of the Focus on Members category; Does anyone know how to determine if a vbulletin visitor is a bot in php? EG: condition $show['member'] & $show['guest'] ...

  1. #1
    Senior Member woostar's Avatar
    Real Name
    woostar
    Join Date
    Apr 2007
    Posts
    788
    Liked
    5 times

    if ($visitor != BOT) {

    Does anyone know how to determine if a vbulletin visitor is a bot in php?

    EG: condition $show['member'] & $show['guest']
    but bot version in PHP.

    PHP Code:
    if ($visitor != BOT) {

    // do stuff here


    I want to make a mod that doesn't interfere with SE bots.
    2011 Average: 1 post every 5 seconds... 24/7

  2. #2
    Senior Member woostar's Avatar
    Real Name
    woostar
    Join Date
    Apr 2007
    Posts
    788
    Liked
    5 times
    am I looking for something that doesn't exist?
    2011 Average: 1 post every 5 seconds... 24/7

  3. #3
    nfn
    nfn is offline
    Senior Member
    Real Name
    Nuno
    Join Date
    Feb 2008
    Location
    Portugal
    Posts
    276
    Liked
    1 times
    There's $show['search_engine'] but only knows 3 bots: google|msnbot|yahoo
    You can extend this in includes/init.php.

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    this is probably a bad idea. you can run into cloaking penalties

  5. #5
    Senior Member woostar's Avatar
    Real Name
    woostar
    Join Date
    Apr 2007
    Posts
    788
    Liked
    5 times
    do you get penalties if the contents is exactly the same? What I'm trying to do only affect function rather than contents.
    2011 Average: 1 post every 5 seconds... 24/7

  6. #6
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    if the display is the same, google/etc won't ever know the difference.


    What exactly are you trying to do?

Similar Threads

  1. Visitor numbers down
    By ijob in forum Analysis: Traffic & SERPS
    Replies: 2
    Last Post: 09-04-2008, 02:40 PM
  2. New visitor, potential purchaser
    By OzSpeedway in forum Pre-Sales Questions
    Replies: 3
    Last Post: 08-20-2008, 12:01 PM
  3. Visitor Message Problem
    By a2zwebs in forum Troubleshooting
    Replies: 3
    Last Post: 05-10-2008, 02:55 AM
  4. database error as visitor
    By m7bobti.com in forum Troubleshooting
    Replies: 2
    Last Post: 01-12-2008, 01:36 PM

Posting Permissions

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