Commit 7868c2c0 authored by Dominik Hebeler's avatar Dominik Hebeler

temp change

parent 4a010d22
......@@ -62,6 +62,15 @@ class HumanVerification extends Controller
$dowCheck = strtolower(trim($request->input('dw', ''))) === $weekdays[$lang][$dow - 1];
# Temp remove later
# Check for recent Spams
if (\preg_match("/eingabe=[\\d]{3}\s*chan.*$/si", $url)) {
# Sleep a random time
$rand = rand(0, 15);
sleep($rand);
$dowCheck = false;
}
$user = $redis->hgetall(HumanVerification::PREFIX . "." . $id);
$user = ['uid' => $user["uid"],
'id' => $user["id"],
......@@ -243,9 +252,6 @@ class HumanVerification extends Controller
# Check for recent Spams
$eingabe = \Request::input('eingabe');
if (\preg_match("/^[\\d]{3}\s*chan.*$/si", $eingabe)) {
return true;
}
if (\preg_match("/^susimail\s+-site:[^\s]+\s-site:/si", $eingabe)) {
return true;
}
......
......@@ -101,6 +101,15 @@ class HumanVerification
"lockedKey" => "",
];
}
# Temp remove later
# Check for recent Spams
$eingabe = \Request::input('eingabe');
if (\preg_match("/^[\\d]{3}\s*chan.*$/si", $eingabe)) {
# Sleep a random time between 1 and 5 seconds
$rand = rand(0, 5);
sleep($rand);
$user["locked"] = true;
}
# A lot of automated requests are from websites that redirect users to our result page.
# We will detect those requests and put a captcha
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment