- 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:
Sarjuuk
2014-09-23 22:30:11 +02:00
parent 979eaa1219
commit 75093f6d8f
3 changed files with 55 additions and 11 deletions

View 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;