Topic: Blocking User List to normal users
I see that spammers are posting URL's in their user profiles. Is there any way to block this list from general view, apart from mods and admin?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 discussion → Blocking User List to normal users
I see that spammers are posting URL's in their user profiles. Is there any way to block this list from general view, apart from mods and admin?
Yes, although I doubt it will make bots stop posting
http://punbb.org/forums/viewtopic.php?id=9520
i found by adding this to the register.php right after the
require PUN_ROOT.'include/common.php';
this has slowed down spam bots and spammers on my sites.
/***************************
START SPAM PROTECTION
***************************/
// Address of the blocklist server
$checkspam['blocklist'] = 'sbl.spamhaus.org';
// Build the url to check (reverse DNS query). If you want to test if it works on
// your server, replace the "get_remote_address()" part with the following: '127.0.0.2'
$checkspam['Reverse DNS'] = implode( '.', array_reverse( explode( '.', get_remote_address() ) ) ) . '.' . $checkspam['blocklist'];
// Do the actual lookup. If the users IP is listed in the blocklist, we will be given just an IP back from the queried server.
// If the user is *not* listed as a spammer, the result we get back from the server will be the same string as we sent.
if( $checkspam['Reverse DNS'] != gethostbyname($checkspam['Reverse DNS']) ) {
message('Unfortunately, it would appear that your current IP address is listed in one of the anti-spam databases we queried.
Because of this, you will not be able to register a new account at this point in time. If you believe this to
be a mistake, we urge you to read the FAQ over at <a href="http://www.spamhaus.org/faq/index.lasso">The Spamhaus Project</a>
for more details, including actions you can take to resolve this issue.',true);
}
/****************************
END OF SPAM PROTECTION
****************************/
Thanks guys. I really would like to disable any access to user profiles whatsoever, including clicking on the user's forum name. I guess following the above example and posts and poking around in the code will do it?
Here's a nice free (Linux) php debugger that I want to see pushed into the Fedora distro.
more or less this code checks against spamhuas list.. if u are a spam bot or a spammer it block ur access.
it could be placed threw out punbb to stop those idiots from view any page...
Q
Maybe a captcha mod, I use one on the registration page of: www.linux.org.py/foro
It uses the kcaptcha php captcha, very nice solution BTW
PunBB Forums → PunBB 1.2 discussion → Blocking User List to normal users
Powered by PunBB, supported by Informer Technologies, Inc.