Follow

JavaScript Injection Configuration

JavaScript Injection Configuration protects your site from unidentified browsers and lets you enable JS delay and set JS injection, location, prefix, and encoding.

NOTE: This feature is available to domains that have been migrated to the latest version of Distil.

JavaScript (JS) injection lets Distil insert a script into HTML pages served from your website, providing browser hi-def fingerprinting.

Important notes about our JS tests:

  • Distil Networks uses first-party cookies on websites. The cookie is only accessible on the website you’re currently visiting, much like a login cookie would be.

  • Distil doesn’t require cookies to be enabled by the client in order to complete our JS test.

  • Distil doesn’t collect any personally identifiable information (PII) in our JS test.

  • This Distil JS code is processed after all other JS execution.

Force Identify

When enabled, this requires all users to pass Distil’s JavaScript tests on their first page request. We inject a script into HTML pages served from your site, forcing each client to provide browser information. This helps build the hi-def fingerprint associated with each request.

For more information, refer to our article on Force Identify.

JavaScript Delay

When enabled, Distil delays the JS injection until after all other page elements load.

NOTE: If a client leaves before JS injection occurs, it will not be identified.

JavaScript Threshold

Set the number of times a client can access your site without identifying itself. Distil serves the JS validation page to the client if its number of requests surpasses this threshold.

NOTE: This setting is only available in the default setting for the domain. You cannot set JS threshold for a specific path.

For more information, refer to our article on Force Identify.

JavaScript Injection Location

Set the location where Distil injects the JS script. By default, we inject this script before the '</head>' tag.

NOTE: This setting is only available in the default setting for the domain. You cannot set a JS injection location for a specific path.

JavaScript Prefix

Set a specific prefix for the randomized JS injection. For example, if you enter /ga in the JavaScript Prefix field, the injected string begins with /ga when your Distil-protected site loads JS on a page.

NOTE: JavaScript Prefix is only available in the default setting for the domain. You cannot set JS prefix for a specific path.

Generated Encoding

Set how the injected JS name is randomized.

Available options:

  • Alphabetic – Uses alphabetic characters to randomize the fetched Distil JavaScript file name. Example: /ga.abcdef.js.
  • Numeric – Uses numerals to randomize the fetched Distil JavaScript file name. Example: /ga.123456.js.
  • Static – Uses a static filename for the Distil JavaScript filename.

    NOTE: Alphabetic and Numeric JS scripts rehash every five minutes. Static JS scripts do not rehash.

 For example, if you enter /ga in the JavaScript Prefix (shown above) and set Generated Encoding to Numeric, this results in a script formatted as /ga.6587.js.

NOTE: This setting is only available in the default setting for the domain. You cannot set generated encoding for a specific path.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments