WordPress htaccess rules to improve security and performance

Here I would like to share some htaccess rules that will help you to improve your wordpress site security and performance. I recommend you to contact your developer before adding these rules. To improve security. # Eliminating HTTP insertions RewriteCond %{REQUEST_URI} !^/(wp-login.php|wp-admin/|wp-content/plugins/|wp-includes/).* [NC] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ ///.*\ HTTP/ [NC,OR] RewriteCond …

Mod_remoteip and real IP login in access log

If your cPanel server is configured with Apache + nginx as reverse proxy then the Apache access_log will not show the real IP address ( visitor’s IP address ), instead it shows server IP address. Due to this we cannot block the IPs that causing bruteforce attack. or we can’t …

Enabling GZIP compression for website.

In this article, I will explain how to enable GZIP compression. GZIP compression will help us to improve the site speed by compressing the site content before it serving to visitor’s browser.  If your site page size is  100kb or more, then GZIP compression is the great option to improve …

imapsync email migration tool

imapsync tool is used to migrate IMAP accounts or to backup IMAP accounts. It allows recursive and incremental IMAP transfer from one mailbox to another. This guide explains how you can migrate mailboxes between IMAP servers with imapsync. impasync installation aptitude install imapsync To learn about its usage, take a …

Converting database from Latin1 to UTF8.

Before going to conversion step I wish to add some information about UTF-8 character set. UTF-8 character is prepared for world domination, but Latin1 isn’t. If you wish to allow users to post their own languages, and if you want users from all countries to participate, then you have to …

Glibc vulnerability

A highly critical vulnerability has noticed in glibc ( GNU C Library ) . For CentOS/RedHat, only version 6 and 7 are affected. CentOS 5 (RedHat 5) and older versions are not affected by this. Just clicking on a link or connecting to a server can result in remote code …