mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- check different request-header to determine the users IP
- block access if it cant be reliably deetermined - increase field size in db to accomodate IPv6
This commit is contained in:
11
setup/updates/12_account.sql
Normal file
11
setup/updates/12_account.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
ALTER TABLE `aowow_account`
|
||||
ALTER `curIP` DROP DEFAULT,
|
||||
ALTER `prevIP` DROP DEFAULT;
|
||||
ALTER TABLE `aowow_account`
|
||||
CHANGE COLUMN `curIP` `curIP` VARCHAR(45) NOT NULL AFTER `consecutiveVisits`,
|
||||
CHANGE COLUMN `prevIP` `prevIP` VARCHAR(45) NOT NULL AFTER `curIP`;
|
||||
|
||||
ALTER TABLE `aowow_account_bannedips`
|
||||
ALTER `ip` DROP DEFAULT;
|
||||
ALTER TABLE `aowow_account_bannedips`
|
||||
CHANGE COLUMN `ip` `ip` VARCHAR(45) NOT NULL FIRST;
|
||||
Reference in New Issue
Block a user