Tag Archives: linux servers

Why and How to Disable Mod_Security?

why-and-how-disable-mod-securityAn apache module that helps to secure your website from several attacks is called Mod_security. Commonly known exploits are blocked with mod_security by using regular expressions and rule sets. It helps in strengthening the security of your servers by potentially blocking common code injection attacks.

No doubt mod-security can be useful when properly configured but many hosting providers don’t do this job correctly leading to problems. The commonly faced problems include triggering of security protocols on standard actions which should be allowed, 403 or 404 errors, access denied error, login issues, unable to modify categories and boards or similar problems. read more

How to optimize image online in Linux?

linux

Online image optimization in Linux:

Image compression may have an interest in many situations. For example, while writing a web article in which we need compressed images to reduce the total weight of a web page. Image compression may also need while sending an email. For this it is worthwhile to know how to do it quickly from command line. So here we will see how to lighten images in PNG, JPEG/JPG format with various tools.

PNG images optimization with pngcrush

First we need install pngcrush, in Debian we will use the below command:

For CentOS and RHEL, use this syntax:

Once installed, pngcrush is very easy to use, for example:

Here, “-brute” allows us better optimization of the image, “-e” compress the original image (Note: after specifying “-e” mention the name for compressed image which will be the output of the tool). read more