PDA

View Full Version : Moderators Functions - Ip_NoPost! Blocking Guests with problem IPs from posting!


Quarterbore
17 Oct 2006, 01:23
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 of two people that asked me to modify the script to block guests from Posting as opposed to viewing. In their case, they allow guests to post in some of their forums and they needed a way to block guests with problem IPs from being able to post.

Like my IP_NoView script, once the blocked guest logs in, this script will not have any impact on their use of the forums. To test this, I blocked my own IP address and IP host and as soon as I logged in I was able to use the site as normal.

How this works

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

If the system is on, two pluggins at the start of newpost and newthread check the IP and IP Host of guests and compare them to the array of blocked IPs. If the guest that is trying to post has an IP that matches, then the system generates an error letting them know that the Administrator has blocked posts by guests with their IP address.

Version Control

16-Oct-2006
- v 1.0.0 released
- tested in vb 3.6.2.
- beta as I could not test on a live site as I do not allow guests to post!

shadowevil
17 Oct 2006, 02:34
first post, nice hack .... *installed"

Wheemer
17 Oct 2006, 21:12
I just tried this mod and blocked my own IP. But I was still able to post as a guest...?

Thank you so much for making this mod though, the morons that are poluting our forum will soon be very surprised!

Quarterbore
18 Oct 2006, 00:11
I just tried this mod and blocked my own IP. But I was still able to post as a guest...?

Thank you so much for making this mod though, the morons that are poluting our forum will soon be very surprised!

Are you sure you remembered to turn it on?

Did you try blocking based on your IP Host if your IP was not blocked?

Also, depending on your IP Provider, some IPs will change while you are browsing... AOL does this and drives me nuts!

I have another hack I have been using on my site that I can give you that will make it easy to verify that yout IP is not changing to trouble shoot. Just send me a PM if you still have problems but that code is part of a bigger project that I am not ready to release yet!

Wheemer
18 Oct 2006, 02:58
yeah I'm sure it was enabled, and my ip is static...

Must I have any of your other plugin installed?

The only thing for installation is importing the product right?

Quarterbore
18 Oct 2006, 03:05
Correct, just this product... You should have one pluggin that should be active and the settings turned on and the IP address added. I tested it on 3.6.2 so I am curious...

Do you know what version PHP you use? I will need to strip down some code to allow you to confirm that the code is getting your IP correctly. I can't do it tonight.... Look for a PM tomorrow evening!

Wheemer
18 Oct 2006, 03:23
sure, I am using php 5.1.6

Quarterbore
19 Oct 2006, 15:54
sure, I am using php 5.1.6

I have finally managed to strip down my next release to a point that it will get you what you need. Please download the userloggerlite zip file and follow the instructions in the enclosed instructions.txt file.

It is IMPORTANT that you don't leave this on your site too long as that text file will get HUGE if you don't clear it out every so often!

What I need to know is if your server is able to resolve IP addresses and IP Hosts and that the addtess that this outputs is what you had tried to use in your IP_NoPost! list of IPs!

Wheemer
20 Oct 2006, 07:07
If this is really necisarry then I will have to do this in a few days... but my whos online resolves ips just fine, if that means anything.

Quarterbore
20 Oct 2006, 20:41
If this is really necisarry then I will have to do this in a few days... but my whos online resolves ips just fine, if that means anything.

It is up to you but this is the best way to test what your sever says to debug any issues. If the script works for you, then you don't need to test it.

Makc666
09 Jun 2007, 06:26
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!

Makc666
19 Jul 2007, 09:41
As Quarterbore didn't reply for my PM but Last Online: Jul 2007 there is new version.

In this version there is a new option called:
Block all users with problem IPs or Hosts from being able to post?

If you set this to "Yes", IP_NoPost! will check all users able post if they are in problem IPs or Hosts list.

Example:

You have forum which anonymous users can read.
You banned some user from your forum by his User's name as you want him to see your forum as anonymous.
You add that user to IP_NoRegister! (http://www.vbulletin.org/forum/showthread.php?t=129280) list.


But then that user can go to other IP, register there a new user name and then return to his IP address and post from there with his new user name.


But now you can block every user able to post with this new option.

So user will be able to see forum, but in combination with IP_NoRegister! (http://www.vbulletin.org/forum/showthread.php?t=129280) he will not be able to Register from his IP address or Host nor able to Post from his IP address or Host.