A lightweight, single-folder PHP RCON web tool for Call of Duty 4x servers.
- Send RCON commands from a browser
- Saved servers (name/IP/port/RCON) with per‑server logs
- Kick / tempban / permaban players via
clientKick,tempBanClient, andbanClient - Simple website‑managed ban list backed by
config/bans.jsonand mirrored torcon_logs/banlist.log - Auth system with JSON‑backed users, login throttling, and admin / mod roles
Status: First public GitHub release (v1.0.0). Tool is designed to be dropped into
/var/www/html/rconon a typical Apache + PHP stack.
- Select a saved server or manually type IP / port / RCON
- Execute any RCON command
- View raw RCON response in the browser
- Kick a player by slot
- Tempban via
tempBanClient <slot> <seconds> - Permanent ban via
banClient <slot>
All actions are logged to rcon_logs/ (and per‑server subfolders when a saved server is used).
- View tail of auth, commands, kicks, tempbans, bans, etc.
- Switch scope between:
- Global logs (
rcon_logs/*.log) - Per‑server logs (
rcon_logs/servers/<serverId>/*.log) when a saved server is selected
- Global logs (
- Bans page lets you:
- View current website‑managed bans from
config/bans.json - Unban by GUID or Ban ID
- View current website‑managed bans from
- Bans are also mirrored to
rcon_logs/banlist.logfor auditing.
- Users stored in
config/users.json - Supports:
- Admins: full control; can see and edit RCON passwords and server list
- Moderators: can use the panel without seeing raw RCON passwords
- Login protection:
- Throttling after too many failures
- Logs login success/failure to
rcon_logs/auth.log
- PHP 7.4+ (no external libraries required)
- Apache or Nginx with PHP‑FPM
- CoD4x server(s) reachable from the webserver
- HTTPS strongly recommended (panel is security‑sensitive)
-
Copy files
sudo mkdir -p /var/www/html/rcon sudo cp -r . /var/www/html/rcon sudo chown -R www-data:www-data /var/www/html/rcon sudo chmod -R 750 /var/www/html/rcon -
Config & logs directories
sudo -u www-data mkdir -p /var/www/html/rcon/config /var/www/html/rcon/rcon_logs
-
Create real config from examples
cd /var/www/html/rcon/config sudo -u www-data cp users.json.example users.json sudo -u www-data cp servers.json.example servers.json sudo -u www-data cp bans.json.example bans.json sudo chmod 640 /var/www/html/rcon/config/*.json
-
Default login (first‑run) is:
- Username:
admin - Password:
changeme
Change this immediately after logging in.
- Username:
-
-
Apache (example)
Make sure your VirtualHost points to
/var/www/html/rconand PHP is enabled. Example:<VirtualHost *:80> ServerName yourpanel.example.com DocumentRoot /var/www/html/rcon <Directory /var/www/html/rcon> AllowOverride All Require all granted </Directory> </VirtualHost>
Then:
sudo a2enmod rewrite sudo systemctl reload apache2
- Browse to the panel’s URL (e.g.
http://yourpanel.example.com). - Log in with the admin account.
- Go to Users and update the admin password (and/or create more users).
- Go to Servers and:
- Add each CoD4x server by name, host/IP, port, and RCON password.
- Use the Control tab to:
- Select a saved server
- Send RCON commands
- Kick / tempban / ban players from the live player list
- Use the Logs tab to monitor auth, commands, kicks, and bans.
- Use the Bans tab to manage website‑stored bans.
- Always use HTTPS in production.
- Restrict access:
- IP‑whitelist the panel if possible (e.g. only your home/office).
- Or put it behind a VPN.
- Change the default admin password on first login.
- Keep
config/andrcon_logs/owned by the web user (e.g.www-data) and not world‑readable. - Never expose this panel directly to the public internet without additional protections.
This project is intentionally simple:
- No database – all state is JSON (
config/*.json) and text logs (rcon_logs/*.log). - No frameworks – plain PHP and a single CSS file in
assets/.
If you want to hack on it:
-
Start a PHP built‑in server:
php -S 127.0.0.1:8080 -t . -
Point your browser at
http://127.0.0.1:8080/login.php.
- Optional 2FA for admin accounts
- Per‑user permissions (e.g. ban‑only mods)
- JSON export/import for bans
- Dark theme toggle
- Dockerfile for one‑command deployment
Released under the MIT License. See LICENSE for details.