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?

Quarterbore 10-18-2006 01:07 AM

Quote:

Originally Posted by Shazz
How much different is this, since your last version?

This is a different product... I have three of these now... This blocks registrations, one blocks posting by guests, the third blocks viewing of posts by guests (that one does other stuff too)... On my live site, I only use the NoView version at this time.

These other scripts were prepared seperately to allow more options for webmasters.

MeMySelfNi 11-16-2006 04:44 PM

thanks :).....................

MeMySelfNi 11-18-2006 02:42 PM

so this won't affect current AOL users on your board...just the guests who come to your board via AOL?

cause I have several AOL users now and I don't wanna block them from the site...just a couple of trolls who keep coming back via AOL after they have been banned.

Quarterbore 11-19-2006 11:51 AM

This would prevent any NEW AOL registrations if you set this up like that... It does not impact members that are already registered.

farooqaaa 11-19-2006 12:57 PM

Nice one :)

*Installed...

Zelos 12-24-2006 05:19 AM

Instead of just blocking registration, it bans them all entirely :(
What did I do wrong?

Quarterbore 12-28-2006 12:21 PM

Quote:

Originally Posted by Zelos (Post 1144329)
Instead of just blocking registration, it bans them all entirely :(
What did I do wrong?


Sorry, just getting back into the swing after the holidays...

First, Please go into your AdminCP >> Plugins

Please confirm that the pluggin for this is attached to "register_start"

Next, try logging out of your system. Can you see your site? Then click the register button. Do you get the BLOCKED message? Is your IP address or host listed in in the AdminCP to explain why you might be blocked?

If you don't get the blocked message, next go in and add your OWN IP address to the blocked list. Then try logging out and see what happens. Try clicking the register button and you SHOULD get the blocked message.

When you log in, the message should go away!

If you get locked out of your system for any reason, you will need to temporarily turn off plugins via your config file. Simply add the following on a new line DIRECTLY after the "<?php"

define('DISABLE_HOOKS', true);

Let me know what this does for you. I would also like to know what version of PHP you are running.

MeMySelfNi 03-23-2007 10:04 PM

does anybody know what i have to type in to block people from registering with hotmail? cause i put in hotmail.com and this one nut keeps coming back using hotmail?

BadgerDog 05-02-2007 12:01 PM

Quote:

Originally Posted by MeMySelfNi (Post 1210665)
does anybody know what i have to type in to block people from registering with hotmail? cause i put in hotmail.com and this one nut keeps coming back using hotmail?

Did you ever get an answer to this?

I'm also curious as I understood if you put "hotmail.com" in the list, that should prevent anyone from registering using hotmail?

Regards,
Badger

Mrdby 05-08-2007 12:24 PM

wow...love it!!! INSTALLED!!!

Makc666 05-30-2007 11:21 AM

There are mods which I can only say two words:
Must have!
This is on of them!

BadgerDog 06-08-2007 09:10 PM

Set it to block mail.ru in attempts to block spammers using that site.

In spite of that, the mod still allows registrations from that site?

What am I missing?

I don't think this mod is functioning, at least for the domain element blocking as above.

Thanks

Regards,
Badger

Makc666 06-09-2007 04:23 AM

As Quarterbore didn't reply for my PM but Last Online: Jun 2007 I will post a language phrase fixed version of this mod...

This is ONLY language phrase fixed version! No any function modifications!

Quote:

Originally Posted by BadgerDog (Post 1264397)
Set it to block mail.ru in attempts to block spammers using that site.

In spite of that, the mod still allows registrations from that site?

What am I missing?

I don't think this mod is functioning, at least for the domain element blocking as above.

Badger, this mods works ok!
I think or you don't understand what this mod does, or you don't understand what you are talking about.
  • If my computer has IP 123.123.123.123 and admin of forum with this MOD will add my IP to IPS' block list of this MOD I will not be able to register.
  • If my computer has host name mak666.adsl.net and admin of forum with this MOD will add my host name to HOSTs' block list of this MOD I will not be able to register.

I don't see any association with two above any mail.ru
mail.ru just sends mails and it is not a proxy server.

BadgerDog 06-09-2007 09:24 AM

Quote:

Originally Posted by Makc666 (Post 1264583)
Badger, this mods works ok!
I think or you don't understand what this mod does, or you don't understand what you are talking about.

Well, I probably don't know what I'm talking about... ;)

I just took his instructions quoted below with AdminCP literally and assumed that anyone using the domain suffix mail.ru would be blocked.

Quote:

List of Hosts addresses that IP_NoRegister! will prevent from registering!

Please list one Host per line in the following format:
proxy.aol.com
aol.com

Please note that the less specific you make this the more people will be affected!!

Thanks for the clarification. :)

Regards,
Badger

bigcurt 06-15-2007 09:16 PM

Nice - thanks.

LordDB 08-06-2007 09:24 AM

Hi

Just noticed today, that when a guest goes to register, he/she now sees, twice, this:
--------------------------------------------------
Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /register.php(79) : eval()'d code on line 25

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /register.php(79) : eval()'d code on line 25
----------------------------------------------------

at the top of the page...they can still successfully register, but how can I get rid of this?

Br.

Makc666 08-06-2007 12:52 PM

Quote:

Originally Posted by daPLAYBOY (Post 1311033)
Hi

Just noticed today, that when a guest goes to register, he/she now sees, twice, this:
--------------------------------------------------
Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /register.php(79) : eval()'d code on line 25

Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /register.php(79) : eval()'d code on line 25
----------------------------------------------------

at the top of the page...they can still successfully register, but how can I get rid of this?

Br.

I think you filled wrong the setting in ACP for this MOD.
Try to download my "fixed phrases" mod here:
https://vborg.vbsupport.ru/showpost....3&postcount=23

and then recheck settings in ACP.

flynnibus 03-11-2008 12:48 PM

Quote:

Originally Posted by MeMySelfNi (Post 1210665)
does anybody know what i have to type in to block people from registering with hotmail? cause i put in hotmail.com and this one nut keeps coming back using hotmail?

Quote:

Originally Posted by BadgerDog (Post 1264397)
Set it to block mail.ru in attempts to block spammers using that site.

In spite of that, the mod still allows registrations from that site?

Both of you are trying to prevent users from registering their EMAIL as those domains. That functionality is already built into vb. User Banning Options -> Banned Email Addresses

This mod is to prevent registration based on their actual IP address they are coming from, not what email account they use

flynnibus 03-11-2008 12:49 PM

Anyone know if the IPs entered can be ranges? Like trying to ban all of Asia, etc? Using 88 with nothing after it, etc

Ksb2050 04-30-2008 09:46 PM

Does anyone know if this works with 3.7?

militarytuners 04-30-2008 09:56 PM

I'll give this a shot and see how it works out for me.

Ksb2050 05-01-2008 01:51 AM

kk, I wasn't sure, I have an aggressive forum troll/hacker and I'm not sure if it's keeping him at bay since the upgrade or not.

DiverTree 05-11-2008 02:02 PM

works 3.7.0 :)

missty72 06-26-2008 08:11 PM

gonna give this a whirl got a numpty who keeps signing up to my forum with offensive names and reporting them to their ISP didnt work, want to make it so she doesnt even get to register, shes not aol but its one of those IPs that changes every few weeks or so.

thanks for this, much needed to keep my community safe and my admins sane! :D

razorripper 02-18-2009 05:53 AM

i installed this - now i am not able to login to my site... someone PLEASE HELP

Makc666 02-18-2009 01:27 PM

Quote:

Originally Posted by razorripper (Post 1747590)
i installed this - now i am not able to login to my site... someone PLEASE HELP

This product can't block your login to the site.
This one blocks you only from registration attempts.

Leo Brazil 01-06-2010 09:51 AM

I've been using this one for a long time. Just wondering if someone here already tested on 4.0.


All times are GMT. The time now is 12:51 PM.

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.01433 seconds
  • Memory Usage 1,823KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete