Block WordPress Attack with CSF

Edit /etc/csf/regex.custom.pm and add: Code: Select all # wordpress if (($globlogs{CUSTOM4_LOG}{$lgfile}) and ($line =~ /(\S+).*] “POST \/wp-login\.php.*” 200/)) { return (“Failed WordPress login from”,$1,”wordpress”,”20″,”80,443″,”3600″); } Then update /etc/csf/csf.conf and change CUSTOM4_LOG to scan your web server access logs. (If they aren’t doing so already). Eg. for Plesk: /var/www/vhosts/system/*/logs/access_log That rule will block brute force attacks […]

Import mysql 5.5 dump in to 5.1

If your getting the error Unknown collation: ‘utf8mb4_unicode_ci‘ Its probally becuase you trying to inport a 5.5 export to a 5.1 databse. You can try changing CHARSET=utf8mb4 to CHARSET=utf8 COLLATE=utf8mb4_unicode_ci COLLATE=utf8_general_ci This will only work if you don’t have invalid caratuers in your mysql dump but it may help.