PHP Classes

File: SQL File

Recommend this page to a friend!
  Packages of Matthew Asham   Binkterm PHP   database/migrations/v1.9.2.4_registration_rate_limit.sql   Download  
File: database/migrations/v1.9.2.4_registration_rate_limit.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Binkterm PHP
Bulletin board system based on the Web
Author: By
Last change:
Date: 1 month ago
Size: 556 bytes
 

Contents

Class file image Download
-- Registration rate limiting table -- Tracks registration attempts by IP address to prevent spam CREATE TABLE IF NOT EXISTS registration_attempts ( id SERIAL PRIMARY KEY, ip_address VARCHAR(45) NOT NULL, attempt_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, success BOOLEAN DEFAULT FALSE ); -- Index for efficient IP lookup and cleanup CREATE INDEX IF NOT EXISTS idx_registration_attempts_ip ON registration_attempts(ip_address, attempt_time); CREATE INDEX IF NOT EXISTS idx_registration_attempts_time ON registration_attempts(attempt_time);