Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Closed Thread
 
Thread Tools
The Google Ban Details »»
The Google Ban
Version: 1.00, by Velocd Velocd is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 06-21-2003 Last Update: Never Installs: 20
 
No support by the author.

The Google Ban
for vBulletin 2 (and soon vBulletin 3)
by Velocd


This hack, as well all my other vB2 hacks, I no longer provide support for (being I run vB3 and it's too much hassel to debug vB2). When vB3 Release Candidate comes out, by request I might convert some of my hacks.


Background

This hack is something I've recently been driven to create. For about the past two months a substantial unproportional amount of fans to this one anime called "Inu Yasha" have been coming to my forum and registering, but all these members are fans of the kiddy version of the show that airs on Cartoon Network.

At first it was no hassel, but then I (and the other normal users/moderators) decided it was enough when there were just too many zero-posters--the countless usernames with "inu yasha" in them, and the active users who seem to all share the trait of a spammer, annoying poster, and/or rule breaker.

At first I thought of using Filburts Ban by Referrer hack, but I didn't know any Inu Yasha forums that these punks were coming from. But, I have a "how did you hear about this place" profile field, and most of them heard about it off of google.

By suggestion of one of my members in the iRC chat the other day, he said it would be best to ban them right off of google.

The main importance of this hack and why it could be needed is that if you have one of the many spidered-hacks install, you know google and other search engines will spider your forum like crazy, but it isn't always to your permission of what keywords/content is going on google, and sometimes it might be something that could attract the opposite crowd


So, let me sum what this hack does.

I found out an easy way to grab the keywords from google using HTTP_REFERER, then compared them with my own created "search engine banned word" list. So, any guest who goes to your site off of a search query that contains those words will automatically be banned.

This hack also will work with searches on yahoo, altavista, alltheweb, and lycos. Probably even more, but not tested.

Make sure you modify the variables $bsistring, $message, and $searchtype.

Credits to Filb since I referenced to his "Ban by Referrer" in certain areas of my code.

Conditionals
  • Only guests are affected by this, and only guests that are not registered on your forum (meaning a user who was logged out). If you want to change the usergroups affected, you must change the part of the code which reads WHERE usergroupid IN (2,5,6,7)");
  • There are two comparison types. Exact (option 0) and Similar (option 1).

    Exact:
    If exact is enabled, then a query through google that reads "stupid forums" would return true if one of the elements in your banned word list contained "stupid forums"

    Though, it would return false if one of the elements instead read "stupid forums with stupid people"

    Similar:
    If similar is enabled, then the first example of exact would return true, but also so would the second.


Screenshots?

Just imagine a guest (though, we really shouldn't call them a guest if you are intentionally trying to ban them, so how about enemy) getting a ban message when they arrive to your forum off of google, and how clueless they will look.

Here is an example of the email you will get:
Quote:
The following user was banned from YourForums.com via HTTP_REFERER because they arrived from Google.com by banned keywords.

IP: 102.45.23.49

Host: 102.45.23.49.nothinghosts.net

Keywords: stupid+jackass+forums

Download the hack!

Remember to click install if you use this hack, and comments/questions/suggestions are always welcomed.

Show Your Support

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

Comments
  #2  
Old 06-22-2003, 05:35 AM
joeboo's Avatar
joeboo joeboo is offline
 
Join Date: Jun 2002
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice concept Velocd. I may just install this
  #3  
Old 06-22-2003, 07:27 AM
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Location: USA/West Coast
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ooh, I like this one. (Wish I could think of a reason we would use it.)
  #4  
Old 06-22-2003, 07:53 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea, but maybe a tad paranoid

Satan
  #5  
Old 06-22-2003, 08:11 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doen't get the point of this.
Why would I want to ban them?
  #6  
Old 06-22-2003, 09:19 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If they search for something like "Loser forums" or "Rubbish forums", and your site comes up because of some smart alec, they are not likely to be coming to your board for any other reason than to trash it...

Satan
  #7  
Old 06-22-2003, 09:29 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, I get it. Are there many people who trash boards?
  #8  
Old 06-22-2003, 10:18 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fantastic idea Mike !

- miSt
  #9  
Old 06-22-2003, 10:48 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack, sadly, i got no reason to install it but it's still a great hack
  #10  
Old 06-22-2003, 02:49 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some people will find no use to this, others will. If you know there is a group of people visiting your forums whom you dislike, and they are mainly finding it through google, you could do some undercover work to find the keywords they are using, and then ban those words.

I wouldn't call it paranoid when what you're trying to do is stop 5 spammers a day from joining your forum whom usually range from the age 9-15. It's annoying work for the moderators having to move threads to the right location/close them all the time, as well the members who follow the rules.
Closed Thread

Thread Tools

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 06:29 PM.


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.04417 seconds
  • Memory Usage 2,289KB
  • Queries Executed 23 (?)
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)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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_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