About Rejecting Particular Bots
The robots.txt file relies on the goodwill of the bots. If you have some undesirable bots still accessing your website, you can block their requests based on the User Agent. This is how to do that in nginx configuration:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
And here's how you can block requests from undesirable bots in .htaccess
file with Apache:
1 2 3 4 5 6 7 |
|
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You