Home > CMS Tutorial > WordPress > body text

How to protect your WordPress website from brute force attacks

王林
Release: 2019-11-08 15:09:20
Original
2358 people have browsed it

How to protect your WordPress website from brute force attacks

We can reduce the chance of being attacked and compromised through the following three steps:

1. Add the following code to the current functions.php to remove WordPress Version information to reduce the chance of being scanned.

remove_action( 'wp_head', 'wp_generator');
Copy after login

2. The default user name should not be admin. Modify the admin user name through SQL.

UPDATE wp_users SET user_login = 'newuser' WHERE user_login =  'admin';
Copy after login

3. Install the Limit Login Attempts plug-in to limit the number of login attempts and prevent the backend password from being obtained through exhaustive methods.

Recommended tutorial: wordpress tutorial

The above is the detailed content of How to protect your WordPress website from brute force attacks. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template