Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2006, 12:34 AM
tgillespie's Avatar
tgillespie tgillespie is offline
 
Join Date: Jul 2002
Location: CO
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Spider Conditional?

Just curious if anyone has ever looked into making a search engine spider conditional? I have certain aspects on my web site, such as text links and buttons that I would rather not let spiders visit. With vBulletin's engine, would it be possible to create a conditional that sorted spiders by hostmask or IP? For example:

<if conditional="host8.google.com"><else />My Friends Site</if>

Not looking for someone to make it, just checking if its possible. Most logical condition would be based on hostmask or ip range.

If done, I think it could greatly help the ability to better SEO your forums.
Reply With Quote
  #2  
Old 06-20-2006, 12:09 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll do it today if I have time. I can use code from my spider's hack to set it up.

Amy
Reply With Quote
  #3  
Old 06-20-2006, 12:36 PM
xStylezx xStylezx is offline
 
Join Date: Mar 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Id be interested in knowing how to do this in vbulletin myself
Reply With Quote
  #4  
Old 06-20-2006, 12:45 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A word of warning - I'm releasing this for 3.6 because that's what I'm running and that's what I can test on. I suspect, however, that the 3.6 version will work on 3.5 as well.
Reply With Quote
  #5  
Old 06-20-2006, 02:25 PM
tgreer tgreer is offline
 
Join Date: Oct 2005
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No plugin or special coding is required. All of this can be accomplished via a standard "robots.txt" file. A simple web search should reveal all you need to know about this standard technique. Also, I believe there is a thread already on vbulletin.com which lists some of the standard pages within vbulletin that spiders should not try to access.
Reply With Quote
  #6  
Old 06-20-2006, 02:27 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tgreer, you are correct. I misunderstood his post to read that he had certain portions of his individial pages that he wanted to exclude from spiders.
Reply With Quote
  #7  
Old 06-20-2006, 02:31 PM
tgreer tgreer is offline
 
Join Date: Oct 2005
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just out of curiosity, then... wouldn't excluding certain portions of pages from spiders be considered "spoofing", and negatively affect SERPS?
Reply With Quote
  #8  
Old 06-20-2006, 02:40 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Probably. But, it would have been a fun academic exercise to code
Reply With Quote
  #9  
Old 06-20-2006, 03:01 PM
tgreer tgreer is offline
 
Join Date: Oct 2005
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No doubt, but the original poster was wanting it for SEO purposes. I don't know for certain, but I'm pretty sure that hiding certain sections of pages from a search engine would have a negative impact on SEO.

But then again, since the conditional would be implemented in PHP, I'm not sure how a search engine would KNOW...
Reply With Quote
  #10  
Old 06-20-2006, 05:14 PM
tgillespie's Avatar
tgillespie tgillespie is offline
 
Join Date: Jul 2002
Location: CO
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tgreer
No doubt, but the original poster was wanting it for SEO purposes. I don't know for certain, but I'm pretty sure that hiding certain sections of pages from a search engine would have a negative impact on SEO.

But then again, since the conditional would be implemented in PHP, I'm not sure how a search engine would KNOW...
I'm pretty sure it wouldn't hurt SERPS because the HTML is just never rendered and the spider wouldn't know. The same technique is used in vBSEO's signature hide hack which disables signatures for guests which also disables it for spiders. Used properly, a conditional like this would greatly benifit boards/sites.

amykhar, I would really appreciate it. 3.6 is fine as I am sure it will most likely be backwards compatible, if not, I'm sure I could manage.

Well seeing as it might be possible, I guess I'll start a mods request thread.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:34 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04249 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete