Small, lightweight PHP based tool to keep your Plesk server safe from pesky bruteforcers by scanning logfiles and detecting suspicious activities. Aiming to be bit more flexible than fail2ban.
- 📝 Scans Plesk server logfiles for violations
- 🤖 Can be scheduled via cron for regular scanns
- 📊 Provides logging/reports via cron notification
- 🚷 Detects and bans bruteforce attempts in a configurable manner
- PHP >= 8.2
- A Plesk server (obviously)
- That's it!
-
Clone the repository to your server (location of your choice):
git clone https://github.com/Aldr0n/PleskSentry.git cd plesk-sentry -
Set proper permissions:
chmod +x scripts/*.php chmod +x scripts/*.sh
-
Configure the scan trigger:
# Add cron job via plesk ui (here it runs every 10 minutes) Task type: Run a php script Script path: /path/to/installation/bin/sentry Arguments: --log=/var/log/syslog (example) Use PHP version: 8.2 or higher Crontab: */10 * * * * System user: root Notify: Every time (optional, set notification to "Every time" to get reports of banned ips)
- 📧 Custom Email notifications/reports for critical events
- 🌐 API integration for external monitoring
- 🧮 More flexible and configurable rulesets/presets
- 🚀 Webhooks
MIT