I have turned on Browser Integrity Check. Pls refer to
I have created a firewall rule to bypass this Browser Integrity Check based on user agent string and full URI. Pls refer to
I am using Java to call API. From my test, if I don’t add user agent header, I get the follow http 403 which is correct:
java.io.IOException: Server returned HTTP response code: 403 for URL: https://www.xxxxxxx/send/notification/general
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at MarketplacePush.push(MarketplacePush.java:129)
at MarketplacePush.run(MarketplacePush.java:63)
at MarketplacePush.main(MarketplacePush.java:23)
After I added user agent in header, the calling API is successful, even the user agent value isn’t “something.to.protect.10293847”, Example “123” also able to call the API.
Here is my Java code
URL url = new URL(“https://www.xxxxxxxxx/send/notification/general”);
…
l_httpURLConnection.setRequestProperty(“User-Agent”, “123”);
…
What’s wrong ? Appreciate for any help !