Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalengineering/896934dd526302a68c198e1b0333219b to your computer and use it in GitHub Desktop.
Save digitalengineering/896934dd526302a68c198e1b0333219b to your computer and use it in GitHub Desktop.
fail2ban config to block attacks on magento payflow endpoint "/paypal/transparent/requestSecureToken"
[Definition]
failregex = ^(www\.)?YOUR_DOMAIN.com:443 <HOST>.* "(GET|POST) \/paypal\/transparent\/requestSecureToken\/ HTTP\/.\..".*$
ignoreregex =
[magento-paypal-token-endpoint]
enabled = true
port = http,https
filter = magento-paypal-token-endpoint
logpath = /var/log/apache2/other_vhosts_access.log
bantime = 86400
maxretry = 10
findtime = 600
@nan-ji
Copy link

nan-ji commented Mar 27, 2019

Thanks for the info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment