当前位置:网站首页>How to use fail2ban to protect WordPress login page
How to use fail2ban to protect WordPress login page
2022-07-28 17:01:00 【Brother Xing plays with the clouds】
Fail2Ban scanning /var/log/auth.log Such log files , And forbid IP Address has too many failed login attempts . It updates the system firewall rules to reject those from within a configurable time IP Address to achieve this . Fail2Ban Open the box , You can read many standard log files , for example sshd and Apache The file of , And it can be easily configured to read any log file you choose , To resolve any errors needed .
In this article , I introduced you how to use Fail2Ban Protect SSH service . Now? , I will guide you How to use Fail2Ban Protect WordPress The login page .
To work with WordPress Integrate , You need to WordPress Install in WP fail2ban plug-in unit .
After installation , Need to put WP fail2ban Plug in folder ( Usually located in wordpress/wp-content/plugins/wp-fail2ban) In the folder of wordpress.conf File copy to Fail2ban Folder ( be located /etc/fail2ban/filter.d). And then in /etc/fail2ban/jail.conf Editor in the middle Fail2ban To configure , Add to WordPress part :
[wordpress] enabled = true filter = wordpress logpath = /var/log/auth.log port = http,https maxretry = 5 findtime = 3600 bantime = 86400
This section writes all access errors /var/log/auth.log file , This filter is applicable to http and https. however , If in Web The server Cache agent is used in the configuration of , You also need to be WP fail2ban The plug-in specifies it , So that it begins to get the client address from the special header , instead of Frontend-proxy The address of . So , Please open the wp-config.php file , And add a containing agent The server Configured rows .
define(‘WP_FAIL2BAN_PROXIES’,‘127.0.0.1’); 127.0.0.1 is the address of the proxy server.
Now? , Restart Fail2ban:
service fail2ban restart
边栏推荐
- SUSE Ceph 快速部署 – Storage6
- Best Cow Fences 题解
- Implementation of transfer business
- Efficiency comparison of three methods for obtaining timestamp
- Technology sharing | how to recover the erroneously deleted table and the data in the table?
- [deep learning]: day 9 of pytorch introduction to project practice: dropout implementation (including source code)
- Interesting kotlin 0x06:list minus list
- How to set ticdc synchronization data to only synchronize the specified library?
- 【深度学习】:《PyTorch入门到项目实战》第一天:数据操作和自动求导
- Alibaba cloud MSE supports go language traffic protection
猜你喜欢

Re13: read the paper gender and racial stereotype detection in legal opinion word embeddings

RE14: reading paper illsi interpretable low resource legal decision making

Add differential pairs and connections in Ad

综合设计一个OPPE主页--页面的售后服务

Alibaba cloud MSE supports go language traffic protection

Learn to use MySQL explain to execute the plan, and SQL performance tuning is no longer difficult
![[deep learning]: day 9 of pytorch introduction to project practice: dropout implementation (including source code)](/img/19/18d6e94a1e0fa4a75b66cf8cd99595.png)
[deep learning]: day 9 of pytorch introduction to project practice: dropout implementation (including source code)

Each account corresponds to all passwords, and then each password corresponds to all accounts. How to write the brute force cracking code

PostgreSQL每周新闻—2022年7月20日

Interesting kotlin 0x09:extensions are resolved statically
随机推荐
HTAP是有代价的
Record development issues
Simple addition, deletion, modification and query of commodity information
Ruoyi集成flyway后启动报错的解决方法
Text filtering skills
Re13: read the paper gender and racial stereotype detection in legal opinion word embeddings
【深度学习】:《PyTorch入门到项目实战》第八天:权重衰退(含源码)
Question making note 3 (two point search)
College students participated in six Star Education PHP training and found jobs with salaries far higher than those of their peers
Im im development optimization improves connection success rate, speed, etc
Detailed steps for setting up SUSE storage6 environment – win10 + VMware Workstation
阿里云-武林头条-建站小能手争霸赛
综合设计一个OPPE主页--页面服务部分
Tcp/ip related
Exercise note 5 (square of ordered array)
Question note 4 (the first wrong version, search the insertion position)
Is smart park the trend of future development?
Re13:读论文 Gender and Racial Stereotype Detection in Legal Opinion Word Embeddings
小程序:scroll-view默认滑倒最下面
Interesting kotlin 0x07:composition