GatePin Legacy is a simple, lightweight PHP-based directory protection script designed for minimal, static PIN-based access control.
- Static PIN Authentication: Uses a fixed PIN for directory access
- Minimal Configuration: Simple, straightforward implementation
- Lightweight Design: Ideal for basic security needs
$correctPin = "2900"; // Static PIN value for the legacy version
- 4-digit PIN input
- Character-by-character input validation
- Automatic form submission on complete PIN entry
- Directory listing
- PHP file access control
- Basic error messaging
- No Dynamic PIN: Fixed PIN value
- Limited Customization: Minimal configuration options
- Basic Security: Not recommended for sensitive directories
- Place the
index.php
in your target directory - Set the
$correctPin
to your desired 4-digit PIN - Ensure PHP is configured on your server
- Enter the 4-digit PIN
- Automatically move between PIN input fields
- Submit form when all 4 digits are entered
- Access directory contents if PIN is correct
// Automatic focus and submission logic
function moveFocus(i) {
var curr = document.getElementById("pin" + i);
var next = document.getElementById("pin" + (i + 1));
// Auto-submit when last digit is entered
if (last digit && complete) {
submit form
}
// Move to next input automatically
else if (current input is filled) {
focus next input
}
}
⚠️ Warning: Not suitable for protecting highly sensitive information- Recommended for:
- Personal projects
- Development environments
- Non-critical directory access
- v1.0 (September 23, 2023)
- Initial legacy version release
- Static PIN implementation
- Basic directory listing
Suggestions and improvements are welcome!
Toni (Jarus) Maxx
- Email: [email protected]
- Website: toimaxx.com
Open-source. Use at your own discretion.
Disclaimer: This is a legacy version with limited security features.