Tag: modsecurity

  • Protect wordpress wp-login with ModSecurity

    Protect wordpress wp-login with ModSecurity

    Protect your wordpress installation (wp-login.php) against brute force attack with ModSecurity. Login to your WHM as root Install Modsecurity  if it isn’t installed Go to the “Plugins” section. Click on “Mod Security” Click on “Edit Config” COPY and PASTE the code below SecAction phase:1,nolog,pass,initcol:ip=%{REMOTE_ADDR},initcol:user=%{REMOTE_ADDR},id:5000134 <Locationmatch “/wp-login.php”> # Setup brute force detection. # React if block flag has been…

  • Install Mod Security on cpanel server

    Install Mod Security on cpanel server

    Installing mod_security on cpanel server  is a simple process that takes less than a few minutes. Login to your WHM as root. Click on EasyApache While selecting modules in the “Short Options List”, select “Mod Security”. Rebuild Apache It could take an hour or two for the build to complete, depending on your settings.