简体   繁体   English

如何在Drupal REST服务中取消对IP地址的访问?

[英]How to unblock access for IP address in Drupal REST services?

My web application, using Drupal 8 as backend, recently stopped logging to Drupal (I was heavily testing login form). 我的Web应用程序使用Drupal 8作为后端,最近停止了登录到Drupal(我正在大量测试登录表单)。

Response from login request to Drupal says: "Too many failed login attempts from your IP address. This IP address is temporarily blocked." 从登录请求到Drupal的响应中说:“从您的IP地址尝试登录失败的次数太多。此IP地址被暂时阻止。”

I can log to Drupal directly from the same IP adress and there is no blocked IP visible in "IP address bans" (/admin/config/people/ban). 我可以从相同的IP地址直接登录Drupal,并且在“ IP地址禁止”(/ admin / config / people / ban)中没有可见的被阻止IP。

I have tried to edit /core/modules/user/config/install/user.flood.yml, but without success. 我试图编辑/core/modules/user/config/install/user.flood.yml,但是没有成功。

I would like: 我想要:

  1. Unblock my IP address. 取消阻止我的IP地址。
  2. Set less strict criteria for blocking. 设置不太严格的阻止标准。

I had to edit Drupal database: Find table "flood" and delete all rows. 我必须编辑Drupal数据库:查找表“ flood”并删除所有行。

However, I would prefered a module for it. 但是,我希望使用一个模块。 "Ban" module does not solve the problem (shows no banned IPs). “禁令”模块不能解决问题(未显示禁止的IP)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM