Categories

Saturday, April 27, 2024
#919814419350 therichposts@gmail.com
Wordpress Tricks

How to secure wordpress website without any plugin?

How to add custom meta title and meta description in Wordpress?

secure wordpress website without any plugin

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 freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 14, Angular 15, Angular 16, Angular 17, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

Leave a Reply

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