Shai Sounds right, but you can do that already with handler403. The change proposed changes the handling of the user agent to raising PermissionDenied exception rather than returning a HttpResponseForbidden().
François > On Jun 24, 2015, at 6:22 AM, Shai Berger <[email protected]> wrote: > > To clarify, I don't object to logging or other custom actions, and it was > clear to me that the feature of DISALLOWED_USER_AGENTS already exists; my > concern is that the OP's motivation seems to have been to control the design > of the error page, which indicates an intention to show it to humans using > browsers. > > On 24 ביוני 2015 11:08:32 GMT+03:00, Aymeric Augustin > <[email protected]> wrote: > 2015-06-24 1:56 GMT+02:00 Shai Berger <[email protected]>: > Could any of the supporters elaborate on the use-case? > > Just to clear a possible confusion -- this feature already exists, it was > added in 2005 to filter out unwanted crawlers by blacklisting their > user-agent. > > The proposal here is to use the custom 403 error view defined by handler403, > which may be useful e.g. for custom logging. > > -- > Aymeric. > > > > > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity. > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/746ABFB5-093F-4C73-BDD4-D547C1FB8F58%40platonix.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/2CD465C3-D974-4597-BD5D-5CB625EB1F30%40gmail.com. For more options, visit https://groups.google.com/d/optout.
