Re: CommonMiddleware DISALLOWED_USER_AGENTS logic

2015-06-24 Thread Nacharov Mikhail
Well, I know that block specific browsers is a bad idea, but sometimes it's necessary to do. For example, creating modern "single-page" web application for restricted number of users. I would prefer show in old browsers something like "Sorry, your browser is too old to use this site, please ins

Re: CommonMiddleware DISALLOWED_USER_AGENTS logic

2015-06-24 Thread Shai Berger
On Wednesday 24 June 2015 15:15:35 François Schiettecatte wrote: > > 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(). > That is exactl

Re: 1.9 release planning

2015-06-24 Thread Chris Foresman
For an additional non-core dev data point, I'm also +1 on Loic's 1.10, 1.11, 2.0... plan. Makes it much easier to plan and communicate framework upgrades to clients. On Tuesday, June 23, 2015 at 9:14:25 PM UTC-5, Josh Smeaton wrote: > > I was worried about 1.10 because I wrongly assumed that t

Re: CommonMiddleware DISALLOWED_USER_AGENTS logic

2015-06-24 Thread François Schiettecatte
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 wrote: > > To clarify, I don't

Re: CommonMiddleware DISALLOWED_USER_AGENTS logic

2015-06-24 Thread Shai Berger
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 us

Re: CommonMiddleware DISALLOWED_USER_AGENTS logic

2015-06-24 Thread Aymeric Augustin
2015-06-24 1:56 GMT+02:00 Shai Berger : > 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