The best way How to protect bot request on production server?

On the production server have often bot request. i want to know how to protect or block these request ?. or the best way to i do ?

This isn’t a Django issue - you may find more / better resources elsewhere.

You would generally resolve this at either the web server (e.g. nginx), proxy (e.g. haproxy), or firewall (e.g fail2ban) layer. You should not be allowing these requests to make it through to Django.

You’re not going to stop this, the best you can do is filter it as early in the stack as possible.

1 Like