I have already bruto force protection for WordPress:
Code: Select all
# WP-LOGINS
if (($globlogs{CUSTOM1_LOG}{$lgfile}) and ($line =~ /(\S+).*] "\w*(?:GET|POST) \/wp-login\.php.*" /)) {
return ("WP Login Attack",$1,"WPLOGIN","5","80,443","1");
But how can I do this for Magento?
Magento 1: /index.php/admin/
Magento 2: /admin