seanleavy / WiimmFiinndus

Mario Kart Wii Friend finder and manager
1 stars 0 forks source link

Use a proper User Agent #10

Open Leseratte10 opened 3 years ago

Leseratte10 commented 3 years ago

Hi,

I am Leseratte, one of the Wiimmfi developers. Please do not use randomized browser user agents when you access Wiimmfi through an app, like you do here:

String userAgent = RandomUserAgent.getRandomUserAgent();
Document mkDocument = Jsoup.connect(UrlConstants.WiimFiiUrl)
    .userAgent(userAgent)
    .get();

There's no need to "hide" your app behind normal browser User Agents. Wiimmfi doesn't block based on User Agents. Instead, please use one meaningful User Agent like WiimmFiinndus - https://github.com/seanleavy/WiimmFiinndus so we can identify app / bot access on the server and distinguish it from normal browsing, and so we know who to contact if the app would ever cause trouble.