Using fail2ban to block Wordpress login attempts

If you are being brute force attacked by someone trying to login to your website, more specifically your WordPress blog, you could certainly block them in the firewall by their ip adress, with iptables like this: iptables -A INPUT -s 13.22.33.12 -j DROP However, this gets quite cumbersome to do everytime your site is under attack, so the best solution would be to have an automated blocking system.  This is where fail2ban comes in. Using fail2ban to

» Read more

How to give ftp users access to directories outside their home folder in linux

Situation You are using a webserver like apache2 or lighttpd to host websites under the /var/www directory, and letting your linux users upload and edit the files in their home folder via ftp. Each user use their own domain, and maybe you have set up virtualhosts in apache2. That is a convenient way to host multiple sites for multiple people, but, you may have a problem if you are using the traditional symlink between the two folders; users home

» Read more

How to make Wordpress work under linux (solve the FTP login request)

Problem WordPress cannot install, delete or update plugins or themes. WordPress asks you for your FTP server login credentials. WordPress cant install or remove plugins or themes: The reason for this, may be that wordpress checks if the userid it is running under, is the same as the owner of the file or folder it tries to edit. The problem seems to be located at line 876 in the method get_filesystem_method in wordpress/wp-admin/includes/file.php: if

» Read more