Block an IP address
How to block an IP address
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:
Further reading
Read more about the nginx access module for available settings.
Last updated