mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 18:44:02 +02:00
Prevent against brute force login attempts from the same IP address
This commit is contained in:
@@ -27,6 +27,13 @@ class Adminer {
|
||||
return password_file($create);
|
||||
}
|
||||
|
||||
/** Return key used to group brute force attacks; behind a reverse proxy, you want to return the last part of X-Forwarded-For
|
||||
* @return string
|
||||
*/
|
||||
function bruteForceKey() {
|
||||
return $_SERVER["REMOTE_ADDR"];
|
||||
}
|
||||
|
||||
/** Identifier of selected database
|
||||
* @return string
|
||||
*/
|
||||
|
Reference in New Issue
Block a user