Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Ban by Referer Details »»
Ban by Referer
Version: 1.00, by filburt1 filburt1 is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

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

This hack bans IP addresses preemtively based on the HTTP_REFERER. Use this hack when users from a certain domain are registering and abusing your forums.

For example, consider the domain "vbulletin.org" is blacklisted. Users who are not registered (or at least not logged in) may click a link at vB.org to your forums. Because you have blacklisted the domain, their IP is immediately banned. You are also e-mailed when it happens.

This is not for the feint-of-heart to configure. You need to know PHP. If you don't know basic PHP, don't ask how to install this hack. Instead (no offense intended), learn the basics of PHP.

I used it recently at my forums, much to my amusement at times when the trolls suddenly disappeared and kept saying their IP was banned "even though they never visited before."

Show Your Support

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

Comments
  #12  
Old 06-16-2003, 12:04 AM
xug xug is offline
 
Join Date: Oct 2001
Location: The Grand Strand, SC
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump, sorry, but I really would like to know the answer on my above question.
Reply With Quote
  #13  
Old 06-16-2003, 01:21 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't there a risk of banning potential members who are just coming over to have a look at your forums, and may join and be a good member?
Reply With Quote
  #14  
Old 06-17-2003, 01:11 AM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[HIGH]NOTE:[/HIGH] HTTP_REFERRER isn't always reliable

Although, this will not really affect much, since the majority of the people will still send in the right referrer.
Reply With Quote
  #15  
Old 06-23-2003, 09:16 PM
partang2 partang2 is offline
 
Join Date: Jun 2002
Location: Norway
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
06-11-03 at 01:10 PM xug said this in Post #10
I'm just starting to learn php but need to ask you guys a question so I can go on because I'm stuck on the array()

Should the script look like:

$baddomains = array('www.domain1.com','www.domain2.com');

Thank you for any help.
Hey! Can someone answer this??
Reply With Quote
  #16  
Old 06-23-2003, 10:11 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 06:16 PM partang2 said this in Post #14
Hey! Can someone answer this??
www.php.net/manual/en/function.array.php

And that line is perfectly fine.
Reply With Quote
  #17  
Old 06-24-2003, 05:04 AM
partang2 partang2 is offline
 
Join Date: Jun 2002
Location: Norway
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Finaly.... Thanks
Reply With Quote
  #18  
Old 06-24-2003, 10:34 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 02:04 AM partang2 said this in Post #18
Finaly.... Thanks
I suggest you rethink your attitude. As a free site we're under no obligation to provide any support at all, so you can at least be genuinely thankful...
Reply With Quote
  #19  
Old 06-24-2003, 01:29 PM
partang2 partang2 is offline
 
Join Date: Jun 2002
Location: Norway
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can read..? Read the last word in my post one more time please: T-H-A-N-K-S
Reply With Quote
  #20  
Old 06-24-2003, 01:30 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And the first word of your post:
Quote:
Today at 02:04 AM partang2 said this in Post #18
Finaly
Just a friendly note.
Reply With Quote
  #21  
Old 06-24-2003, 01:34 PM
partang2 partang2 is offline
 
Join Date: Jun 2002
Location: Norway
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh.... "Finaly".... Hm... bad word... Well, sorry if I hurted someones feelings. It was not something I wanted to do.
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:59 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.06911 seconds
  • Memory Usage 2,299KB
  • Queries Executed 27 (?)
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
  • (4)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
  • (1)pagenav_pagelink
  • (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_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