View Full Version : template condition for spider bots?
NeXuM
05-07-2010, 06:19 AM
I have a simple question:
I desactivated the archive on my forum, but i would like to display some text only for spider bots... is there a template condition / variable to do this ?
something like
<if condition="spider bot = 1">hello google bot</if>
thanks !
vbenhancer
05-07-2010, 12:37 PM
<if condition="$show['spider']">
NeXuM
05-10-2010, 02:01 AM
its not working :(
i'm trying to display some text only for humans and hide it for spider bots, so i tryed:
<if condition="$show['spider']"><else />welcome, you are an human !</if>
but if i display my site with a google bot spoofer, the text is also displayed for spider bots :(
NeXuM
05-11-2010, 08:26 PM
bump
NeXuM
05-13-2010, 06:00 AM
why isn't it working ? :(
Speysider
05-13-2010, 11:51 AM
Spiders don't have their own array, not sure why nexia told you that they did. Spiders are counted as guest users.
vbenhancer
05-13-2010, 12:13 PM
if you don't know, why do you reply...
$show['spider'] is the default variable to identify a web crawler for vB 3.x ... in some situations it may not work... if i remember right, the bot spoofer is just a web interface, am i right? if so, it will not work because your browser still hold the session you are using to access your site the regular way, so you are considered human.
NeXuM
05-13-2010, 06:49 PM
well phpbb have a similar variable condition to identify the spider bots, and the google bot spoofer works and the forum identify me as a spider so the page is displaying the spider conditions.... i think it should be the same for vbulletin
is there any other way to spoof a web crawler ? i really need to see how my page is displayed for spider bots
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.