isPhishingURI
Determine if an URI is a phishing attempt.
📝 Permissions needed in the manifest
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Content copied to clipboard
🔑 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}")
}
Content copied to clipboard
Return
Boolean
— true if a phishing URI is currently detected.