I recently moved my website from
Amazon EC2 server due to which the android app started having connection issues. To be precise, the app fails to connect to the website URL. Android app uses
Jsoup library to connect to URLs of the website. The crash log says:
org.jsoup.HttpStatusException: HTTP error fetching URL. Status=403, URL = "MyWebsiteURL
Please note that the website is up and working fine on the web browsers. After doing some investigation, it seems that the new server
Amazon EC2 doesn't allow requests from automated processes.
JSOUP being a robot kind, therefore fails to get response with error 403.
Have you ever faced this problem in the past? How do I get rid of that?