wordpress
Wordpress Tricks

How to secure wordpress website without any plugin?

secure wordpress website without any plugin

199Views

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

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am full stack developer. I love coding. I know Wordpress, Core php, Angular 1, Angular 2, laravel, Codeigniter, Shopify, Squarespace, Jquery, GoogleMapApi Vuejs, Reactjs, Bigcommerce etc.

Leave a Reply