-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EDU-5837] refactor: update Fingerprint integration guide (#1397)
* chore: disabled npm run tsc * refactor: remove unnecessary old steps * refactor: adjusting introduction and description * Update fingerprint.mdx * refactor: align with review and redirect * refactor: aligning file name * refactor: align with the review --------- Co-authored-by: robsongajunior <[email protected]>
- Loading branch information
1 parent
7ab78c7
commit 77c6d9d
Showing
10 changed files
with
108 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
236 changes: 0 additions & 236 deletions
236
src/content/docs/en/pages/guides/marketplace/integrations/fingerprint.mdx
This file was deleted.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
...content/docs/en/pages/guides/marketplace/integrations/javascript-tag-js-tag.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
title: How to install the Javascript Tag (JS TAG) through Azion | ||
description: Capture devices and network data to better identify devices accessing your applications, embedding a browser-level script. | ||
meta_tags: protection, cybersecurity, edge computing | ||
namespace: docs_use_case_fingerprint | ||
permalink: /documentation/products/guides/javascript-tag-js-tag/ | ||
--- | ||
|
||
The **Javascript Tag (JS TAG)** is composed of a **browser-level script**, a [JavaScript code](#embedding-the-script) that must be added to the web page. It captures data about the browser and sets it as a session cookie named `_azfp_sc`, so this data is always sent by the browser. | ||
|
||
--- | ||
|
||
## Embedding the script | ||
|
||
The browser script is a JavaScript code that runs on the web page you want to fingerprint, a process also known as JavaScript injection. It captures multiple data from the web browser: | ||
|
||
- Audio and video support | ||
- Canvas rendering | ||
- If the browser has access to device-level API, such as accelerometer and gyroscope | ||
- Manufacturer's data | ||
- Timezone | ||
- WebGL rendering | ||
|
||
Then, it creates a unique identifier containing all this information and sets it as a session cookie named `_azfp_sc`, as cookies are always sent in the requests made by the browser. The script checks if the session cookie already exists. If so, it won't create a new one. | ||
|
||
Azion provides a code sample for this JavaScript injection that you can include in your project. To do so: | ||
|
||
1. Add [this file](https://mal2u8n8zk.map.azionedge.net/274addd29ac1edb2b200a297b98581cd88465e2ee36f18cfdbdc063402063fe5.js) to your HTML source, following this example: | ||
|
||
```bash | ||
<script src="https://mal2u8n8zk.map.azionedge.net/274addd29ac1edb2b200a297b98581cd88465e2ee36f18cfdbdc063402063fe5.js"></script> | ||
``` | ||
|
||
Alternatively, you can also: | ||
|
||
1. Copy the code in [this file](https://mal2u8n8zk.map.azionedge.net/274addd29ac1edb2b200a297b98581cd88465e2ee36f18cfdbdc063402063fe5.js). | ||
2. Create a new JavaScript file with the code. | ||
3. Include the JavaScript file in your project folder. | ||
1. In this example, the file name is `fingerprint-script.js` | ||
4. Then, add it to your HTML source, following this example: | ||
|
||
```bash | ||
<script src="https://example.com/fingerprint-script.js"></script> | ||
``` | ||
|
||
Where: | ||
- `https://example.com/` is your domain. | ||
- `fingerprint-script.js` is your JavaScript file name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.