Commit c06f7265 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Giving each spamming ip a unique uid

parent 63cd7ca5
...@@ -35,7 +35,7 @@ class HumanVerification ...@@ -35,7 +35,7 @@ class HumanVerification
$spamID = \App\Http\Controllers\HumanVerification::couldBeSpammer($ip); $spamID = \App\Http\Controllers\HumanVerification::couldBeSpammer($ip);
if (!empty($spamID)) { if (!empty($spamID)) {
$id = hash("sha1", $spamID); $id = hash("sha1", $spamID);
$uid = hash("sha1", $spamID . "uid"); $uid = hash("sha1", $spamID . $ip . $_SERVER["AGENT"] . "uid");
} else { } else {
$id = hash("sha1", $ip); $id = hash("sha1", $ip);
$uid = hash("sha1", $ip . $_SERVER["AGENT"] . "uid"); $uid = hash("sha1", $ip . $_SERVER["AGENT"] . "uid");
......
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