Find and disable specific ModSecurity rules

ModSecurity uses can help block potential attack attempts from malicious users, but sometimes it can also block legitimate requests. Note: Using SecRuleEngine Off in your modsecurity configuration, you won’t want to put that in your ModSecurity configuration file. As that completely turns off ModSecurity. The SecRuleRemoveById setting is used instead to only disable one specific … Read more

Set up mailman on CentOS 6.6

Here is how to install the mailman mailing list on CentOS 6.6. Install Mailman via yum: Next, edit its Apache configuration file: Uncomment the redirect parameter and enter the correct domain name. Set the site master password: This password can be used to access any list or any page. Edit the Mailman configuration file: The … Read more

Block IP with Plesk Firewall

Plesk 9.x 1. Login to Plesk control panel. 2. Click on Modules >> Firewall >> Edit Firewall Configuration. 3. Click on ‘Add Custom Rule’. 4. Enter a name for the rule. 5. Select the option ‘Incoming’ for ‘Match direction’. 6. Select ‘Deny’ for Action. 7. If you wish to add port, you can enter the … Read more

Force SSL in .htaccess file

If you have existing code in your .htaccess, add this above where there are already rules with a similar starting prefix.

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Be sure to replace www.yourdomain.com with your actual domain name.

Read more

Hard Drive shows 100% after removing files

Still at 100% disk usage after deleting files? Deleting file won’t free the space until you delete the processes that have open handles against that file. Nevertheless, you can reclaim the space. All you need to do is to remove the file descriptors. First execute lsof | grep deleted to identify the process holding the file.

Read more