Code: Select all
private function stopforumspam_check($username, $ip, $email)
{
Code: Select all
private function stopforumspam_check($username, $ip, $email)
{
// $ip = '176.37.33.75'; // localhost testing
$email = '[email protected]'; // localhost testing
// we need to urlencode for spaces
$username = urlencode($username);
Code: Select all
Banned IP for reason “Found in the Stop Forum Spam database”
» 216.172.135.95
Code: Select all
'SFS_API_KEY' => 'Stop Forum Spam API key',
'SFS_API_KEY_EXPLAIN' => 'If you want to submit spammers to the Stop Forum Spam database, input your API key from <a target="_new" href="http://www.stopforumspam.com/keys">stop forum spam</a> here. You must be registered on the SFS website to get an API key',
// ACP message logs
Code: Select all
if ($this->config['sfs_ban_ip'])
{
$this->ban_by_ip($this->user->ip);
}
Yes, that works. Thank you.RMcGirr83 wrote:This is where the IP is bannedand no you can not submit using this extension to the stop forum database.Code: Select all
if ($this->config['sfs_ban_ip']) { $this->ban_by_ip($this->user->ip); }
Code: Select all
Reason for ban: Found in the Stop Forum Spam database
Reason shown to the banned: Found in the Stop Forum Spam database
Code: Select all
Stop Forum Spam triggered:
Username: TestUser
IP: 176.37.33.75
Email: [email protected]
Code: Select all
Banned IP for reason “Found in the Stop Forum Spam database”
» 176.37.33.75
Code: Select all
// Let's not ban a registrant/poster with a common IP address, who is otherwise clean
// not sure of keeping this or not...we'll see
if ($ck_username + $ck_email == 0)
{
$ck_ip = 0;
}
'Reason shown to the banned:' appears when posting:Lady_G wrote:...Should 'Reason shown to the banned:' instead be blank (no message)? I don't see a need to notify a spammer. Perhaps it doesn't matter, as there is no username or email associated with a failed registration.
Code: Select all
You have been banned from this board until Sat Jun 27, 2015 7:54 pm.
Please contact the Board Administrator for more information.
Reason given for ban: Found in the Stop Forum Spam database
A ban has been issued on your IP address.
Hi,RMcGirr83 wrote:I have taken back this extension and have submitted it to the database on here for validation.