CommonMiddleware DISALLOWED_USER_AGENTS logic

68 views
Skip to first unread message

Nacharov Mikhail

unread,
Jun 23, 2015, 8:24:17 AM6/23/15
to django-d...@googlegroups.com
Dear, folks!

I wonder is there some architecture rule that doesn't allow CommonMiddleware raise PermissionDenied exeption when client agent matches one of the settings.DISALLOWED_USER_AGENTS regexps?

Right now if python developer wants to use this setting than all disallowed clients get page with single header "Forbidden". And there is no way to change this behavior (except write your own middleware of cause).

Thanks!

--
Mikhail Nacharov


François Schiettecatte

unread,
Jun 23, 2015, 8:27:43 AM6/23/15
to django-d...@googlegroups.com
And quoting Tim Graham:

You'll get answers to questions like this on the django-users email list, <django...@googlegroups.com> - the web interface is <https://groups.google.com/forum/#!forum/django-users>.

The list you've posted to is django-developers, which is for the discussion of the development of Django itself.

You might also find the #django IRC channel on irc.freenode.net helpful.

François
> --
> 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 django-develop...@googlegroups.com.
> To post to this group, send email to django-d...@googlegroups.com.
> 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/7182be11-0c36-4f69-896d-331cf337e877%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages