Skip to main content




Applies only to Mobile Apps
Service Studio version:

Configuring an exit URL for a blocked app

  • Edit
    Collaborate with us
    Edit this page on GitHub
  • If an app with the AppShield security plugin detects modification or tempering, the app shuts down. You can use the AppShield ExitOnURL configuration to inform the user of the reason. The ExitOnURL lets you to define an Exit URL that the app opens in the default browser. It also lets you explain the issue to the app users.


    Before beginning, make sure that:

    • You're working with mobile apps
    • You have a licensed copy of AppShield
    • You are working with an AppShield version 1.4.0 or above
    • You prepared a landing page to which you redirect the user if AppShield blocks the app

    If the app shuts down due to security concerns, it loads the URL only if you configure the ExitOnURL value.

    Define and enable your exit URL

    To enable the ExitOnURL feature, first copy the JSON code snippet below and continue with the following steps:

        "preferences": {
            "global": [
                    "name": "ExitOnURL",
                    "value": "" 
    1. From Service Studio go to the Interface tab, select the app name, and click on the right side of the Extensibility Configuration field to open the Extensibility Configuration window. Then paste the JSON code snippet in the window to define the ExitOnURL property as a new global preference.

      Define Exit URL

    2. In the ExitOnURL value string replace with the correct domain name and landing-page with the path and name that suits your needs. A typical Exit URL may be Then click Close.

      The Exit URL value must not contain any URL parameters. For example, appending &param=1 to the Exit URL value prevents the app from loading the page.

    3. Design your landing page to display an informative message, such as the following example for a bank app:

      Sorry to see that your app shut down. It's a security feature designed to protect your data and money. We suggest scanning your phone, and, in the meantime, please use our web portal.

    Enhance the Exit URL experience for your users

    When AppShield blocks an app it generates query parameters that you may use to present the user with a comprehensive explanation for why the app closed.

    For example, a landing page for a blocked Android device might be something like the following:

    You may incorporate these generated query parameters into your informative message.

    We're sorry! We had to shut your app down because we detected native code hooks, possibly inserted by a malicious app, on your Android Pixel device. This is a security feature designed to protect your data and money. We suggest scanning your phone, and, in the meantime, please use our web portal.


    AppShield can't guarantee that the Exit URL page will load in all instances if an attacker is probing the app's defenses. For example, attempting to attach a debugger to the application causes AppShield to shut the application down and open the configured Exit URL. There are, however, a number of ways that the attacker can prevent this page from opening in the main browser, such as putting the device in flight mode. If this happens, the users may not be aware of what is happening, and you can't presume that such hacking attempts will always be reported and seen on the server.

    The Exit URL event doesn't provide precise metrics of security issue events, since a single user can trigger multiple Exit URL events. This feature is primarily designed to provide useful feedback to the end user about why the application stopped working, rather than a reliable reporting mechanism for the app owner.

    The app loads Exit URL in the default browser and may remain in an open tab or window until the user closes it. This may cause a number of effects, including the following:

    • The Exit URL page may cause the browser to trigger additional page loads of the configured URL when the user launches the browser at a later time.
    • The Exit URL page, when it appears as the user clicks the back button or flips through the various browser tabs or windows, may lead to misleading statistics if you are tracking page views on your server.


    More information about the AppShield and the Exit URL configuration.

    AppShield query parameters

    The app includes the following parameter information in the generated Exit URL.

    Query Parameter Description
    %reason% The reason for the shutdown, in decimal. See other tables for explanations of these values.
    %manufacturer% The manufacturer of the device
    %model% The model name of the device
    %android% The Android API level of the device
    %ios% The iOS API level of the device

    Shutdown reasons for iOS

    A list of reasons for app shutdown in iOS devices.

    Decimal Explanation
    0 Device is jailbroken/rooted
    1 Application is being debugged
    2 Application is modified or repackaged
    3 A screenshot of the application was taken
    4 An injected library was found in the process
    5 A hooking framework was found in the process
    6 A screen recording of the application was started

    Shutdown reasons for Android

    A list of reasons for app shutdown in Android devices.

    Decimal Explanation
    0 Device is rooted
    1 Application is modified or repackaged
    2 Application is being run in an emulator
    3 Java debugger attached to app
    4 Untrusted keyboard found
    5 Untrusted screen reader found
    6 Native code hooks, possibly inserted by malicious app
    8 Shield could not read configuration file
    9 Problem with Native Debugger Protection
    13 Problem initializing Shield
    14 App received termination signal
    15 Application crashed outside of Java-code, either native library or Shield
    16 Hooking frameworks detected
    17 Native debugger prevention not possible on this device
    18 Screen Mirroring in use
    1A Developer Options enabled on device
    1B Untrusted Installer found on device
    1C Android Developer Bridge active on device
    • Was this article helpful?