Skip to content

Instantly share code, notes, and snippets.

View EternalPlanemo's full-sized avatar

EternalPlanemo

View GitHub Profile
@EternalPlanemo
EternalPlanemo / wordpress-filter.conf
Last active May 15, 2025 09:41
fail2ban wordpress exploit bots
# Fail2Ban filter to ban wordpress exploit bots
[Definition]
failregex = <HOST> .* "(HEAD|GET|POST) .*\/(wp-admin|wp-login\.php|wp-cfg|wp-includes\.php|wp-includes|wp\/|wp-.*\.php|include\/sort\.php|bak\.zip|\.env).* HTTP/.*"
ignoreregex =
datepattern = {^LN-BEG}%%ExY(?P<_sep>[-/.])%%m(?P=_sep)%%d[T ]%%H:%%M:%%S(?:[.,]%%f)?(?:\s*%%z)?
^[^\[]*\[({DATE})

Deploying Laravel with PHP Deployer on a Forge server

Start by creating the server and installing the project conventionally. After it's been deployed and you confirm that it works you can proceed.

Step 0

Install deployer as a non-dev dependency and push your changes:

composer install deployer/deployer