added IP ban facility - IP addresses can now be blocked from logging into
Venice, either individually or in blocks
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# MySQL script for initializing the Venice database.
|
||||
# Written by Eric J. Bowersox <erbo@silcom.com>
|
||||
# Written by Eric J. Bowersox <erbo@ricochet.com>
|
||||
#---------------------------------------------------------------------------
|
||||
# The contents of this file are subject to the Mozilla Public License Version 1.1
|
||||
# (the "License"); you may not use this file except in compliance with the License.
|
||||
@@ -11,9 +11,9 @@
|
||||
#
|
||||
# The Original Code is the Venice Web Communities System.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
||||
# The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
|
||||
# for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||
# Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
# Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
@@ -429,6 +429,20 @@ CREATE TABLE imagestore (
|
||||
data MEDIUMBLOB
|
||||
);
|
||||
|
||||
# Table listing IP addresses that are banned from logging in or registering.
|
||||
CREATE TABLE ipban (
|
||||
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
address BIGINT NOT NULL,
|
||||
mask BIGINT NOT NULL,
|
||||
enable TINYINT NOT NULL DEFAULT 1,
|
||||
expire DATETIME,
|
||||
message VARCHAR(255) NOT NULL,
|
||||
block_by INT NOT NULL,
|
||||
block_on DATETIME NOT NULL,
|
||||
INDEX by_mask (mask),
|
||||
INDEX by_date (block_on)
|
||||
);
|
||||
|
||||
##############################################################################
|
||||
# Set table access rights
|
||||
##############################################################################
|
||||
|
||||
Reference in New Issue
Block a user