[OSM-dev] 403 forbidden
Vijaya Nand
vijaya21tiwari at gmail.com
Sat Jun 1 08:34:47 UTC 2019
Hi,
I have made the changes and still getting the same issue. Please unblock
accordingly.
[image: image.png]
On Sat, Jun 1, 2019 at 12:16 AM Justmapzz Rodolfo <rodolfo at justmapzz.com>
wrote:
> In order to prevent suspicious situations in the future, I compiled a
> modified version of GMAP.NET, in which the controversial definition of
> the user-agent is eliminated. All apps that use this version must define
> the user-agent themselves now.
> The lines concerned in GMapProvider.cs now look like this:
>
> //public static string UserAgent = string.Format("Mozilla/5.0 (Windows NT
> {1}.0; {2}rv:{0}.0) Gecko/20100101 Firefox/{0}.0",
> // Stuff.random.Next(DateTime.Today.Year - 1969 - 5,
> DateTime.Today.Year - 1969),
> // Stuff.random.Next(0, 10) % 2 == 0 ? 10 : 6,
> // Stuff.random.Next(0, 10) % 2 == 1 ? string.Empty : "WOW64; ");
>
> // UserAgent must be defined by your app e.g.:
> GMap.NET.MapProviders.GMapProvider.UserAgent = "YourOwnUserAgentDefinition";
> public static string UserAgent = "";
>
> If someone wants to use these modified GMap.NET.Core.dll and
> GMap.NET.WindowsForms.dll, please let me know.
> All the 20 map providers of Justmapzz work with the new dll's, (except
> OSM), but I hope this exception will be eliminated soon.
>
> Rodolfo
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20190601/ebb008fd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 56634 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20190601/ebb008fd/attachment-0001.png>
More information about the dev
mailing list