This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ws-wp-xmlrpc] | |
enabled = true | |
filter = ws-wp-xmlrpc | |
action = iptables-multiport[name=wp-xmlrpc, port="http,https"] | |
logpath = /var/www/vhosts/system/*/logs/*access*log tail | |
/var/log/httpd/*access_log tail | |
# If there are 50 hits in 30 seconds (1.66/s), ban the IP for 30 minutes | |
bantime = 1800 | |
maxretry = 50 | |
findtime = 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Enable zlib in Dovecot alongside automatic writing of new emails in gzipped format | |
echo '# Enable zlib plugin for reading/writing: | |
protocol imap { | |
mail_plugins = $mail_plugins zlib | |
} | |
protocol pop3 { | |
mail_plugins = $mail_plugins zlib |