isPhishingURI

@RequiresPermission(value = "android.permission.ACCESS_NETWORK_STATE")
suspend fun isPhishingURI(uri: Uri): Boolean

Determine if an URI is a phishing attempt.


📝 Permissions needed in the manifest

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />


🔑 Minimum required license level: Advanced.


Sample usage

try {
val networkDiagnostic = rasp.diagnostic.network
val isPhishingURI = networkDiagnostic.isPhishingURI(Uri.parse("https://www.google.fr"))
Log.d("RASP-DEMO", "[isPhishingURI] Domain phishing https://www.google.fr (False expected): $isPhishingURI")
} catch (e: Exception) {
Log.e("RASP-DEMO", "[networkDiagnostic] isPhishingURI error: ${e.message}")
}

Return

Boolean — true if a phishing URI is currently detected.