vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Moderators Functions - IP_NoRegister! Block problem IPs or IP Hosts from registering on your site! (https://vborg.vbsupport.ru/showthread.php?t=129280)

Quarterbore 10-16-2006 10:00 PM

IP_NoRegister! Block problem IPs or IP Hosts from registering on your site!
 
Background:

This script is basically the same code used for my IP_NoView! hack but was created because a member asked me to modify the script to block specific IPs or IP Hosts from Registering.

How this works

This works through the use of three settings inside the AdminCP >> vBulletin Settings >> Ip_NoRegister! These settings include an ON/OFF switch, a list of blocked IPs, and a List of blocked IP Hosts.

If the system is on, a pluggin at the start of Register check the IP and IP Host of guests and compare them to the array of blocked IPs. If the guest that is trying to register has an IP that matches, then the system generates an error letting them know that the Administrator has blocked registrations by guests with their IP address.

Version Control
6-Aug-2006
- v 1-0-1 Update
- Please see the product file uploaded here: https://vborg.vbsupport.ru/showpost....3&postcount=23
It fixes a couple phrase issues and I do not seem to be able to edit the downloads anylonger so that I can add it here?
Special thanks to "Makc666" for posting this fix while I have been away!

16-Oct-2006
- v 1.0.0 released
- tested in vb 3.6.2.
- beta as I did not test on a live board!

voteforbird 10-17-2006 12:53 AM

Is this really any better than the IP blocking already available in vBulletin?

Quarterbore 10-17-2006 01:51 AM

The default IP banning stops an IP from accessing anything on your site via IP address. The problem I faced, and the reason I made the IP_NoView! version of this code was that I have several hundred AOL users on my site and ONE PITA psycho! To block all AOL IPs that this member used was impossible (when I gave up I had over 2-dozen blocked!). So, I created the second part using php functions to resolve the IP host so I could block at that level.

Now, because these hacks work off a hook location and they use a conditional so that only guests are affected, members are able to log in and use the forum as normal. I have other tools on the site that help me identify multiple accounts or multiple account registrations...

I created this because I needed it for my site and it has worked really well for me! That is why I decided to share it here and these two follow-ons pretty much use the same code.

ShadowOne 10-17-2006 02:00 AM

Will This Work On 3.5.4?

Quarterbore 10-17-2006 02:28 AM

The pluggin code is really quite simple so it should... The only problem that you may run into is with the "execution order" in the product as I belive that is a vB 3.6.x thing.

So, download the product and try it... if you get an error try removing the code executionorder="5" in the pluggin before you try to import the product. Please let me know if it works or if you need help...

Davidhi 10-17-2006 10:02 AM

This may sound dumb but why not just block the users IP in CPanel, this will give them a blank screen with a unauthorized to view this site message.
no need for the hack then?

Quarterbore 10-17-2006 12:11 PM

Well, as above... This only works via ONE IP address! With AOL (my nightmare) when a AOL user dials into AOL they IP address will shift AS they browse and the same AOL user can have dozens of IP addresses. Because AOL shares these IPs with all their users, blocking IPs will have two problems!

1. You will not be effective in blocking the person you want to block
2. You will be blocking people you want to be able to visit the site (BLOCKING EVERYTHING - Regradless if they log in or not)

By using the IP and IP Host method, you can start with a single IP to see if that gets the problem person to go away. If they get in with more IPs, well then you can go to the host level. The other thing with the scripts I have posted, these ONLY impact guests! If the guest logs in, they will be able to use your forum (obviously different with this register version).

Now, with this script, let's assume you have problems from some former Com-Block IP host that keeps posting spam. You close their accounts but they keep comming back. With this script you can block their IP or IP Hst from registering and no new registrations. Perhaps they can e-mail you to get access or perhaps you don't care. Just the same, these guests would still be able to browse the site using this method where other methods they would not be able to do so.

So, the difference in this script compared to CPanel or vBulletin's built in is that it can allow some actions but not all actions based on IP address. You can now block registration, posting, or viewing of posts for guests based on their IP address. By adding new pluggins, you can do much more as posted in my IP_NoView! version of this script.

Karri 10-17-2006 04:11 PM

Just what I needed, giving it a whirl now. :)

Zelos 10-17-2006 08:18 PM

I've been looking for a mod like this for years! Finally, a way to block IPs without banning innocents; I'll install this as soon as I get a chance!

Shazz 10-17-2006 10:49 PM

How much different is this, since your last version?


All times are GMT. The time now is 02:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01024 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete