PDA

View Full Version : Moderators Functions - IP_NoRegister! Block problem IPs or IP Hosts from registering on your site!


Quarterbore
17 Oct 2006, 01:48
Background:

This script is basically the same code used for my IP_NoView! (http://www.vbulletin.org/forum/showthread.php?t=127288) 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: http://www.vbulletin.org/forum/showpost.php?p=1264583&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
17 Oct 2006, 02:53
Is this really any better than the IP blocking already available in vBulletin?

Quarterbore
17 Oct 2006, 03:51
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
17 Oct 2006, 04:00
Will This Work On 3.5.4?

Quarterbore
17 Oct 2006, 04:28
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
17 Oct 2006, 12:02
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
17 Oct 2006, 14:11
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
17 Oct 2006, 18:11
Just what I needed, giving it a whirl now. :)

Zelos
17 Oct 2006, 22:18
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
18 Oct 2006, 00:49
How much different is this, since your last version?

Quarterbore
18 Oct 2006, 03:07
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
16 Nov 2006, 18:44
thanks :).....................

MeMySelfNi
18 Nov 2006, 16:42
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
19 Nov 2006, 13:51
This would prevent any NEW AOL registrations if you set this up like that... It does not impact members that are already registered.

farooqaaa
19 Nov 2006, 14:57
Nice one :)

*Installed...

Zelos
24 Dec 2006, 07:19
Instead of just blocking registration, it bans them all entirely :(
What did I do wrong?

Quarterbore
28 Dec 2006, 14:21
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
24 Mar 2007, 00:04
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
02 May 2007, 14:01
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
08 May 2007, 14:24
wow...love it!!! INSTALLED!!!

Makc666
30 May 2007, 13:21
There are mods which I can only say two words:
Must have!
This is on of them!

BadgerDog
08 Jun 2007, 23:10
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
09 Jun 2007, 06:23
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!

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
09 Jun 2007, 11:24
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.

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
15 Jun 2007, 23:16
Nice - thanks.

LordDB
06 Aug 2007, 11:24
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
06 Aug 2007, 14:52
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:
http://www.vbulletin.org/forum/showpost.php?p=1264583&postcount=23

and then recheck settings in ACP.

flynnibus
11 Mar 2008, 14:48
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?

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
11 Mar 2008, 14:49
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
30 Apr 2008, 23:46
Does anyone know if this works with 3.7?

militarytuners
30 Apr 2008, 23:56
I'll give this a shot and see how it works out for me.

Ksb2050
01 May 2008, 03:51
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
11 May 2008, 16:02
works 3.7.0 :)

missty72
26 Jun 2008, 22:11
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
18 Feb 2009, 07:53
i installed this - now i am not able to login to my site... someone PLEASE HELP

Makc666
18 Feb 2009, 15:27
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
06 Jan 2010, 11:51
I've been using this one for a long time. Just wondering if someone here already tested on 4.0.