>
av.Amit VijayanCYBERSECURITY & RESEARCHLet’s connect
Back to the library

Product & web security

Wordpress Security

Pheww...!! Its been so long that i haven't posted something interesting. I really apologize for the delay. Lets Get Started :D

In my previous tutorials, I have explained how to hack a website (that was for educational purpose only) and how to upload a shell also. Now its time to secure your website from various attacks. 

What is WordPress? 

Its and open source website creation written in PHP or is the easiest and most powerful blogging and website content management system . 

With the increase in Digital Market, more and more people are creating their website to show their presence in this Digital World so there is a need to secure that world also.



WordPress Security 

1. Disable custom HTML when possible

Add this code in wp-config.php file
define( 'DISALLOW_UNFILTERED_HTML',true );

2. Remove all Default posts and comments

Remove all default posts and comments. If malicious hackers find those on your site,then it may indicate to them that you have a new wordpress site which can be easily cracked.

just to this file "wp-includes/general-template.php"

function the_generator( $type ){
echo apply_filters("the_generator',get_the_generator($type),$type)."\n";
}
After Security

function the_generator($type){
#echo apply_filters('the_generator',get_the_generator($type),$type)."\n";
}

note: make sure a hash is applied next to the echo command .

3. Delete wp-admin/install.php and wp-admin/upgrade.php

Be sure to delete /wp-admin/install.php and /wp-admin/upgrade.php after every wordpress installation or upgrade. 

4. Hide indexes


 Just open .htaccess file and type this code

 Options –indexes   


 5.  Block Some Crucial directories
Your site's wp-includes/ directory is the most important one to block.

Find the .htaccess file there and insert

  RewriteRule ^(wp-includes)\/.*$ ./ [NC,R=301,L] 

If there are subdirectories, then use this code

 RewriteRule ^(wp-includes|subdirectory-name-here)\/.*$ ./ [NC,R=301,L] 

6.  Secure your Admin page with YUBICO

 http://www.yubico.com/   = PAID Plugin 

7.  Limit Login Attempts


Limit the number of login attempts possible both through normal login as well as using auth cookies.

http://wordpress.org/extend/plugins/login-lockdown/



8.  Server Side Scanning Online FREE

Web-malware continues to evolve making it challenging to detect using only HTTP fingerprinting techniques, such as the ones Site Check is restricted to.

 http://sitecheck.sucuri.net/scanner/

 http://wordpress.org/extend/plugins/better-wp-security/ 

9. Install Wordpress Security Scan Plugin


This  is  a  good  plugin  which  scans  your  Wordpress  installation  and  give  the  suggestion accordingly. This plugin will check for below things:

·     Passwords
·     File Permissions
·     Database Security
·     Wordpress Admin protection 
 http://wordpress.org/extend/plugins/wp-security-scan/ 




10. Automatically Backup your site

http://wordpress.org/extend/plugins/backwpup/


11. Two Factor Authenticator

The Google Authenticator plugin for Wordpress gives you two-factor authentication using the
Google Authenticator app for Android/iPhone/Blackberry.

http://wordpress.org/extend/plugins/google-authenticator/

12. Using .htaccess file as a FIREWALL

 RedirectMatch 403 \[ 
 
13. Clean out Old Unneeded Core Files

Clean out old unneeded core files with help from this free Wordpress plugin:

http://wordpress.org/extend/plugins/old-core-file


14. Activate Akismet Plugin

To block the comment spam automatically using Akismet Which a Wordpress plugin

15. Monitoring Your Wordpress

http://wordpress.org/extend/plugins/wordpress-file-monitor-plus/

16. Hide Your Login Page

 http://wordpress.org/extend/plugins/hide-login/  

17. Content Security

 Try checking http://copyscape.com/


18. Check for Exploits

 http://wordpress.org/extend/plugins/exploit-scanner/                                                                

19. Select Email Address as Your Login Key

 http://wordpress.org/extend/plugins/wp-email-login/   

20. Change Database Prefix Plugin

 http://wordpress.org/extend/plugins/db-prefix-change/
 
21. Keep a log of Wordpress PHP and Database Errors

 http://wordpress.org/extend/plugins/error-log-monitor/  

22. Outstanding Security Plugin

http://wordpress.org/extend/plugins/login-dongle/

http://wordpress.org/extend/plugins/better-wp-security/

http://wordpress.org/extend/plugins/wordfence/

23. Website Defender Plugin

 http://wordpress.org/extend/plugins/websitedefender-wordpress-security/   

24. Maintenance Mode Plugin

 http://wordpress.org/extend/plugins/maintenance-mode/ 



From the HackInvasion archive

This sample preserves the article’s original text and publication date, restyled for Amit’s personal website. Older material may describe historical tools or techniques.

Read the original article on Blogger

Keep exploring.

All articles