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_NoPost! Blocking Guests with problem IPs from posting! (https://vborg.vbsupport.ru/showthread.php?t=129277)

Quarterbore 10-16-2006 10:00 PM

Ip_NoPost! Blocking Guests with problem IPs from posting!
 
Background:

This script is basically the same code used for my IP_NoView! 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 10-17-2006 12:34 AM

first post, nice hack .... *installed"

Wheemer 10-17-2006 07:12 PM

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 10-17-2006 10:11 PM

Quote:

Originally Posted by Wheemer
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 10-18-2006 12:58 AM

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 10-18-2006 01:05 AM

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 10-18-2006 01:23 AM

sure, I am using php 5.1.6

Quarterbore 10-19-2006 01:54 PM

Quote:

Originally Posted by Wheemer
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 10-20-2006 05:07 AM

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 10-20-2006 06:41 PM

Quote:

Originally Posted by Wheemer
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.


All times are GMT. The time now is 11:31 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.01673 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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