Block an IP address
How to block an IP address
Last updated
How to block an IP address
Last updated
If your website comes under load from a bad IP address, use nginx to block it.
Edit (or create) the file /home/dokku/APP/nginx.conf.d/block.conf
.
In that file, add the nginx deny
setting for the IP, such as:
Validate the nginx config with:
If nginx is happy, then reload nginx's config:
Read more about the for available settings.