mirror of
https://github.com/helenclx/BellaBuffs-PHPMailer.git
synced 2025-03-30 19:40:51 +00:00
Check https:// for potential spam
This commit is contained in:
parent
52b29f5a14
commit
5be90cee4d
@ -24,7 +24,11 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
|
||||
)
|
||||
$points += 2;
|
||||
|
||||
if (strpos($_POST['comments'], "http://") !== false || strpos($_POST['comments'], "www.") !== false)
|
||||
if (
|
||||
strpos($_POST['comments'], "https://") !== false ||
|
||||
strpos($_POST['comments'], "http://") !== false ||
|
||||
strpos($_POST['comments'], "www.") !== false
|
||||
)
|
||||
$points += 2;
|
||||
if (isset($_POST['nojs']))
|
||||
$points += 1;
|
||||
|
5
join.php
5
join.php
@ -34,7 +34,10 @@ if (isset($_POST['submit'])) {
|
||||
if (isBot() !== false)
|
||||
$error_msg .= "No bots please! UA reported as: ".$_SERVER['HTTP_USER_AGENT'] . "\r\n";
|
||||
|
||||
if (substr_count($_POST['comments'], 'http://') > 1)
|
||||
if (
|
||||
substr_count($_POST['comments'], 'https://') > 1 ||
|
||||
substr_count($_POST['comments'], 'http://') > 1
|
||||
)
|
||||
$error_msg .= "Too many URLs; we've assumed you're spam and 'lost' your application. Please try again without any extra URLs if you're a geniune person :)\r\n";
|
||||
|
||||
$exploits = "/(content-type|bcc:|cc:|document.cookie|onclick|onload|javascript|alert)/i";
|
||||
|
@ -40,7 +40,10 @@ if (isset($_POST['submit'])) {
|
||||
if (isBot() !== false)
|
||||
$error_msg .= "No bots please! UA reported as: ".$_SERVER['HTTP_USER_AGENT'] . "\r\n";
|
||||
|
||||
if (substr_count($_POST['comments'], 'http://') > 1)
|
||||
if (
|
||||
substr_count($_POST['comments'], 'https://') > 1 ||
|
||||
substr_count($_POST['comments'], 'http://') > 1
|
||||
)
|
||||
$error_msg .= "Too many URLs; we've assumed you're spam and 'lost' your application. Please try again without any extra URLs if you're a geniune person :)\r\n";
|
||||
|
||||
$exploits = "/(content-type|bcc:|cc:|document.cookie|onclick|onload|javascript|alert)/i";
|
||||
|
Loading…
x
Reference in New Issue
Block a user