Home Wordpress Tricks How to secure wordpress website without any plugin?

How to secure wordpress website without any plugin?

by therichpost
0 comment
How to add custom meta title and meta description in Wordpress?

Hello to all, welcome to therichpost.com. In this post, I will tell you, how to secure wordpress website without any plugin? Wordpress is the best cms.
Wordpress has 25.7% of all sites across the web.

From the beginning, my believe was not to use any security plugin for wordpress website.

Here are the best tips secure wordpress website without any plugin and I also use them.

1. Change your wordpress password once a week and make it as securable as you can.

2. Restrict your wp-login.php page of your wordpress website and you can do this with below code and you need to add this code into your wordpress website theme’s functions.php file:

/*restrict wp-login.php page*/
add_action( ‘init’, ‘force_404’, 1 );
function force_404() {
$requested_uri = $_SERVER[“REQUEST_URI”];
if (strpos( $requested_uri, ‘/wp-login.php’) !== false ) {
// The redirect code
status_header( 404 );
nocache_headers();
include( get_query_template( ‘404’ ) );
die();
}
}

3. Unable to edit files from wordpress dashboard editor:


Here is the working code for stop edit files from wordpress dashboard and you need add this into your wordpress config.php file
define( ‘DISALLOW_FILE_EDIT’, true );

4. Take your wordpress files and database backup once a week.

These are the only few things, I can share for wordpress security if you have any then please comment on this post.

There are so many tricks in wordpress and I will let you know all. Please do comment if you any query related to this post. Thank you. Therichpost.com

You may also like

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.