Ban

This module allows you to block visitors to your site that originate from a specific IP address. The IP address can uniquely identify a particular user, but more commonly, it will resolve to a geographical or organizational group, such as a particular business or institution. Typically, you would want to do this if you are experiencing trouble from automated "bots", which are attempting to break in to the site or send spam via a web form.

Enable the Ban module now.

Once enabled, the Ban module provides a new configuration screen labeled IP address bans.

Visit that screen now by navigating to Home | Administration | Configuration | People

(admin/config/people/ban):

To identify potential IP addresses to ban, go to the recent log messages by navigating ...

Get Drupal 8: Enterprise Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.