Check the request.META['REMOTE_ADDR'] in your custom request
middleware. If it equals to the one, you want to block, return an
error page.

Regards,
Aidas Bendoraitis [aka Archatas]



On 3/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Looking at my logs, I saw a gazillion requests from 81.208.31.216,
> which I believe is a malicious bot. I understand there's a way to use
> middleware to block IPs, but could somebody elaborate on that, or
> point me in the right direction? Thanks!
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to