Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
6796e994
Commit
6796e994
authored
Jul 14, 2022
by
Dominik Hebeler
Browse files
aborting
parent
d93ea2ef
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
metager/app/Http/Middleware/Spam.php
View file @
6796e994
...
...
@@ -41,6 +41,7 @@ class Spam
$browser
->
setUserAgent
(
$_SERVER
[
"AGENT"
]);
if
(
$browser
->
browser
()
===
"Chrome"
&&
$browser
->
version
(
$browser
->
browser
())
===
"91.0.4472.77"
)
{
$this
->
logFail2Ban
(
$request
->
ip
());
abort
(
404
);
}
// ToDo Remove Log
$file_path
=
\
storage_path
(
"logs/metager/spam.csv"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment