![]() |
Hide something to spiders
Hi everyone, vbulletin has a built-in feature that separate guests from spiders (correct me if 'm wrong). what i need is a condition to show something just to guests and not spiders, is this possible with an exsisting vb function? I know i can do this checking $_SERVER['HTTP_USER_AGENT'] but would be easier if there is something already integrated on vbulletin. Does anyone know something about this?
|
Have a look at class_core.php. Search for 'enablespiders'. Spiders are decoded in there.
But any use of the built in vB spider system is only going to be as good as your spiders_vbulletin.xml file. And there are so many spiders out there you'll never get them all. You're better off completely hiding things from unregistered users. Otherwise one spider will feed off of another spiders scan and the content will be picked up anyway. |
Thank you i'll look into it btw i know that there isn't a 100% working way but that's enough for me :)
--------------- Added [DATE]1372261362[/DATE] at [TIME]1372261362[/TIME] --------------- I've done this simple code in parse_templates hook (this is where i need the condition) PHP Code:
|
vBulletin already uses a condition <vb:if condition="!$show['search_engine']"> so anything that shows up in the spiders list gets covered by it :)
|
Thank you very much this will be a lot easier :) i'll try it
|
Naturally you know to remove or leave the ! depending on whether you want the condition to apply to them or not :)
|
All times are GMT. The time now is 09:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|