[QGIS-Developer] Request for Change of UserAgent

Jorge Gustavo Rocha jgr at di.uminho.pt
Wed Feb 20 15:11:52 PST 2019


Hi Richard,

Each user can change the UserAgent, as ElPaso pointed out (under
Advanced settings).

But you are suggesting to start distributing QGIS with a different
default other than "Mozilla/5.0", right? Which kind of UserAgent you
think is a good one? "QGIS <version>"?

We can also add another default setting (not difficult to implement) to
use a specific UserAgent string when using te OpenStreetMap tile
service, and keep the default for all other services. Something like:
connections-xyz\OpenStreetMap\useragent=QGIS

Regards,

Jorge

Às 16:30 de 20/02/19, Richard Duivenvoorde escreveu:
> Hi Devs, PSC,
> 
> I had a short talk on IRC to 'Firefishy' the person who runs
> tile.openstreetmap.org CDN
> (in bcc, and see: http://irclogs.geoapt.com/qgis/%23qgis.2019-02-20.log)
> 
> In short: he/osm has an issue with QGIS using 'Mozilla/5.0 ....' as
> User-Agent header, but QGIS NOT behaving as a true browser.
> 
> He explains that the tricks to create their abuse filters do not work on
> QGIS because (for example) we do not honor cookies.
> 
> I asked this earlier:
> 
> http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-Do-we-have-a-User-Agent-string-for-QGIS-td5360740.html
> 
> But in my opinion now is time to change our default UserAgent.
> 
> In the email thread above people were afraid that certain wms proxies
> would block us, but I think we should just try.
> 
> IF we have proxy troubles, we can change the UserAgent per service? For
> example change the UserAgent only for OSM related services.
> Mmm, is it possible to do that via Python...
> 
> I think that we should honor requests from a colleague-FOSS-service. He
> notes that they are exceeding 17000 tile requests per second at peaks...
> 
> Regards,
> 
> Richard Duivenvoorde
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor


More information about the QGIS-Developer mailing list