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

Reply
 
Thread Tools
IP_NoView! Blocking Guests w/ problem IP addresses from Showthread & Showpost pages! Details »»
IP_NoView! Blocking Guests w/ problem IP addresses from Showthread & Showpost pages!
Version: 2.1.0, by Quarterbore Quarterbore is offline
Developer Last Online: Aug 2020 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.6.1 Rating:
Released: 09-21-2006 Last Update: 10-06-2006 Installs: 29
DB Changes Uses Plugins
 
No support by the author.

Background:

The idea behind this product is that we really can't ban some IP addresses without locking out guests and members that we want to be able to access the forums. To further complicate this issue, with some internet providers a member can have a dozen or more IP addresses. Blocking all of these various IPs that a bad user might have would also block dozens of members that could all share the same IP addresses resulting in good guests or members not being able to access the site.

This product was created so problem guests with identified IPs can not read the threads and posts in the forums but good members can still get in and use the site! Even guests with the same IP address, will be able to look around the site, see the forums and topics being discussed (just not read the threads or posts) and perhaps decide they wish to join. This script does not impact the registration page, login page, or anything else on the site (unless you add the pluggin code to other hooks that you wish to block )

How the Product works:

This script works using hooks for the start of SHOWTHREAD and SHOWPOST and if a visitor is not logged in (ie they are a guest) their IP address is compared to an array of "NoView" IP addresses. If their IP address is in that array, the user will get an error message explaining that they can not see the thread or post because their IP address is on a list of problem IPs and they can login or register to make the problem go away (see attached for showthread and showpost).

Inside the AdminCP is an option to turn this script ON or OFF and IP addresses are listed in a text area with one IP address listed per line (see attached).

NEW FEATURE ADDED with Version 2.0.0:

With some hosting companies, like AOL, users get a new IP address each time they seem to dial into AOL. This makes blocking by a specific IP address difficult if not impossible. Php however affords us a function that allows a script to resolve the host responsible for an IP address. So, with version 2.0.0 of this script I have added the ability to block viewing of threads or posts based on the host.

When using this feature, you can use as specific or general of a host as you wish but remember that if you make it too general you will impact a lot more members then if you keep it somewhat specific. For example, the person I wanted to lock out of my website showed up on my Whos Online page as "cache-mtc-ab07.proxy.aol.com". In the list of HOST IP addresses to block I could use ay of the following for that guest to no longer be able to see threads or posts:

cache-mtc-ab07.proxy.aol.com
ab07.proxy.aol.com
proxy.aol.com
aol.com
.com

Note, the one I decided to use was the "proxy.aol.com" as everything before that seemed to change with a new call. This works like the IP list such that you can add one host per line.

NEW FEATURE ADDED with Version 2.1.0:

I have added two new pluggins that will also block problem IPs or IP Hosts from viewing forums or using the search on the site. If someone does not want these, you can go into your pluggins and turn off the these pluggins inside your pluggin manager under IP_NoView!

What Does this Add to your site?
4 Small Hooks
5 Small Phrases
3 vBsettings in the settings table

Version Information:
Version 1.0.0.
- Initial Release Sept 22, 2006

Version 2.0.0
- Released Oct 2, 2006
- Added a way to block based on Resolved Host Name

Version 2.1.0
- Released Oct 5, 2006
- Fixed bug processing of BLOCKED HOSTs in array
- See: https://vborg.vbsupport.ru/showthread.php?t=128343
- HUGE thanks to nico_swd for the solution!
- Added two new plugins to block Forum viewing and Searching for problem IPs

Show Your Support

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

Comments
  #2  
Old 09-22-2006, 07:10 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved

I have installed this in 3.6.0 and 3.6.1 forums and I did not have any problems! I also UNINSTALLED and it did not cause any problems either but as always I suggest you do a databackup as I can't help you fix your site if this causes you problems!

Updates:

9/22/2006 17:37 EST

I just discovered a typo in the adminCP area where I had "Please note there is no trailing zero!". That should have said "Please note there is no trailing period!" Product has been fixed and a new image of the AdminCP has been uploaded.
Reply With Quote
  #3  
Old 09-22-2006, 08:38 PM
Gizmo5h1t3's Avatar
Gizmo5h1t3 Gizmo5h1t3 is offline
 
Join Date: Aug 2005
Location: ROCHDALE LANCS UK
Posts: 650
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed on 3.5, works no problems....

updated, that was just a phrase change wasnt it?
Reply With Quote
  #4  
Old 09-22-2006, 08:44 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gizmo5h1t3
installed on 3.5, works no problems....

updated, that was just a phrase change wasnt it?
Yes, just the phrase and it was not a critical fix...
Reply With Quote
  #5  
Old 09-22-2006, 08:45 PM
Gizmo5h1t3's Avatar
Gizmo5h1t3 Gizmo5h1t3 is offline
 
Join Date: Aug 2005
Location: ROCHDALE LANCS UK
Posts: 650
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

gotta admit, i was lookin for trailing zeros tho...lmao
Reply With Quote
  #6  
Old 09-22-2006, 09:02 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks man!
Reply With Quote
  #7  
Old 09-22-2006, 09:11 PM
andrewrhs andrewrhs is offline
 
Join Date: Jul 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot, this sounds like a potentially great product.
Reply With Quote
  #8  
Old 09-23-2006, 10:17 AM
Ajavas's Avatar
Ajavas Ajavas is offline
 
Join Date: Aug 2004
Location: The Netherlands
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work! Thnx and installed.
Reply With Quote
  #9  
Old 09-23-2006, 10:26 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah Great work, I've been looking around for something like this for quite a while.

Thanks.
Reply With Quote
  #10  
Old 09-25-2006, 04:00 AM
bigfrank bigfrank is offline
 
Join Date: Jun 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ken you are the Man, I know one place that this code will help drive out a Pest.
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: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.04374 seconds
  • Memory Usage 2,297KB
  • 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