I would like to know if this code is secure to validate that a url is from my domain before loading it a webview in android :
if (!url.startsWith("https://www.example.com/test/")){
// don't load the url
dontload = true;
}
It looks secure but do you know if there is any way to bypass it ? Maybe with URL encoding ?
I use this code in onPreExecute to set the boolean that is checked before loading the url.
I get the url from url = getIntent().getDataString()