Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Member Bots 1.0 - Allow bots to act as members Details »»
Member Bots 1.0 - Allow bots to act as members
Version: 1.00, by trilljester trilljester is offline
Developer Last Online: Aug 2011 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 02-14-2006 Last Update: Never Installs: 192
Uses Plugins
Code Changes  
No support by the author.

--------- Member Bots 1.0 ---------
Written by Trilljester - http://www.trilliummud.com

This small mod allows you to treat search engine robots (i.e. GoogleBot, Yahoo Slurp) as registered users instead of guests, as they are treated by default in VBulletin.

This is handy if your site allows limited access to guests, but full access to registered users. By default, a search engine robot would only be allowed to index what a guest could see, but with this mod, it would allow them to fully index your site as a registered user.

This mod uses the spiders_vbulletin.xml file for determining if a visitor is a bot or not, so make sure you have that file up to date. The one that comes with VB is pretty sparse, but it works. If you're only interested in GoogleBot, then the default file works great.

WARNING! This mod requires a very small edit to a VBulletin core file. This means whenever you upgrade to a new version of VBulletin, you'll need to re-do this edit, if you overwrite this file. If the idea of editing a VBulletin core file bothers you, don't install this mod! I won't be held responsible for your forum being fouled up. This mod is very safe however, so don't fret.

Install Instructions:

1. Unzip the product-memberbot.xml file on your system.

2. Go to your VBulletin AdminCP and click on Manage Products under the Plugin Manager section.

3. Click on Add/Import Product.

4. Click on Browse on the first line (Upload the XML from your computer) and locate the product-memberbot.xml file. Click on Import to upload it to the system.

5. Click on Plugin Manager, and ensure that the new plugin named Bot Checker, which is found under the init_startup hook, is enabled.

6. Now the fun part, you'll need to edit the core VBulletin file init.php which is located in the includes directory under your forum home.

For example, if your forum home is located in /home/blah/forum, then init.php is in /home/blah/forum/includes

If you can edit the file on the server without having to download it, more power to you.

In init.php, find this line (should be near the very bottom of the file, it was line 403 in mine):

Code:
if (!empty($db->explain))
Add ABOVE this line:
Code:
if ($is_bot == 1) {
        $vbulletin->userinfo['usergroupid'] = 2;
}
NOTE: My registered users group is ID #2. Yours may be different, you may change this to any group ID you like.

7. Save init.php and upload back to your server if you had to download the file to edit it.

If you're editing on the server, save it, and that's it!

================================================== ========
That's it! Search Engine bots should now "see" your forum as a regular user, not a guest.

Questions, comments, improvements are more than welcome. Please use this thread as a cental support site. It makes it easier for me to help out. Also, you may visit my site and fire me off a PM for help, or just send a quick thanks or shout out.

Enjoy!
// trilljester

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #182  
Old 07-11-2008, 08:49 PM
dtv100 dtv100 is offline
 
Join Date: Apr 2007
Location: in the south of the north
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Los View Post
I renamed the file to spiders_vbulletin.xml and added the code. Seems to work. How can I be sure?


go to vBulletin Options /Who's Online Options /Enable Spider Display
set to yes then go to who is online and if there spider you can see if they get permission errors.
Reply With Quote
  #183  
Old 08-08-2008, 05:31 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have just installed this on my 3.6.8 Vs 2. How do I check that it has worked Please?

I have just tried to that "Spiderlist" through my ACP -> P&P -> Product Manage -> add/Import, but it showed as "Invalid File Specified". Is it because it is for the 3.7.2? Where as I have the 3.6.8?

I asume it is just the spiderlistXML file that I am supposed to upload?

How do I check that the upload of this hack is working for me Please? (I have been in ACP -> Who's Online Options -> Enable Spider Display -> Yes. (No spiders on at present).

When I downloaded it earlier, Google sider was on - but it was showing as a Guest (as usual). What I have done above will be seen by the members of the forum now - wouldn't it?

Many Thanks,

Welshy2008.
Reply With Quote
  #184  
Old 10-07-2008, 02:12 PM
andy9l andy9l is offline
 
Join Date: Sep 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many thanks to dtv100 and trilljester!.

This works on 3.7.3 Patch 1 for me, this is what I did:

1. Downloaded, and installed the XML file from the original hack posted here (attached)
2. Edited the following in my init.php file (./includes/init.php)

Find:

Code:
if (!empty($db->explain))
{
	$db->timer_stop(false);
}

/*======================================================================*\

Replace with:

Code:
if ($is_bot == 1) {
        $vbulletin->userinfo['usergroupid'] = XX;
}
if (!empty($db->explain))
{
	$db->timer_stop(false);
}

/*======================================================================*\

Seems to be working for me, I don't have any spider lists or anything installed, had no problems with Admin CP or other guest/member permissions as of yet. I'll let you know if there are any problems in the future.

It's simpler than it's made out in this thread...

The above code was not written by me and all credit goes to the makers/coders here
I'm just giving a testimonial of a successful install on VB 3.7.3 - Patch 1
Reply With Quote
  #185  
Old 10-07-2008, 02:31 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this mod has bad idea written all over it
I would advise AGAINST using this mod, giving the bots access to more then guest will get you blacklisted in search engines in no time.
Reply With Quote
  #186  
Old 12-07-2008, 06:00 PM
Nassou Nassou is offline
 
Join Date: Mar 2007
Location: PHP
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much , it work for me !
Reply With Quote
  #187  
Old 12-15-2008, 07:24 PM
ROTPAR ROTPAR is offline
 
Join Date: May 2004
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Problem is: Now, every non registered member who will use a firefox plugin what will identify him as google bot, will have access to all private/closed forums as guest. They don't even need to register, just by using a FF Plugin.

Is there no possibility to identify the googlebot by actual ips ?
Reply With Quote
  #188  
Old 01-26-2009, 07:35 PM
dxblouie dxblouie is offline
 
Join Date: Jan 2009
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works on 3.8.0 as follows:
install as normal

now in includes/init.php around line #400, look for the following:

Code:
                $vbulletin->options['contactuslink'] .= $vbulletin->session->vars['sessionurl_q'];
        }
}

// CSRF Protection for POST requests
if (strtoupper($_SERVER['REQUEST_METHOD']) == 'POST')
Replace with the following:

Code:
                $vbulletin->options['contactuslink'] .= $vbulletin->session->vars['sessionurl_q'];
        }
}

// memberbot mod:
if ($is_bot == 1) {
        $vbulletin->userinfo['usergroupid'] = XX;
}
// End of memberbot mod

// CSRF Protection for POST requests
if (strtoupper($_SERVER['REQUEST_METHOD']) == 'POST')
i can see provisions for verifying the bot IP address in the mod code, but it doesn't seem to be active..
Reply With Quote
  #189  
Old 01-26-2009, 08:34 PM
mahakala mahakala is offline
 
Join Date: Jul 2006
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, i like it

to prevent missuse take a look at http://bot-trap.de - if one tries to fake, he is trapped. even so spambots and so on.
Reply With Quote
  #190  
Old 03-12-2009, 01:11 PM
ROTPAR ROTPAR is offline
 
Join Date: May 2004
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i make it work on 3.8.1
Reply With Quote
  #191  
Old 03-14-2009, 10:14 PM
RedHacker RedHacker is offline
 
Join Date: Jan 2009
Posts: 878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to install this in 3.8.1 .....?
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 02:28 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.05173 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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