Castle Fingerprinting Script
Packaged version of Castle fingerprinting script.
Maintenance Notice
This package is in the maintenance mode and had been migrated to @castleio/castle-js . If you would like to take advantage of the new features try the newer version.
Introduction
The Castle JavaScript automatically captures every user action in your web application, including clicks, taps, swipes, form submissions, and page views. We use this data to build profiles of good user behavior in order to detect the bad.
Minimal Requirements:
ES3+ version supported browsers eg:
- Chrome 5+
- Firefox 3+
- IE 6+
- Safari 4+
- All modern browsers (desktop and mobile)
Installation
npm install --save castle.js
Usage
import 'castle.js'
_castle('setAppId', YOUR_CASTLE_APP_ID);
Using the script as standalone
<script type="text/javascript" src='dist/c.js'></script>
<script type="text/javascript">
_castle('setAppId', 'YOUR_CASTLE_APP_ID');
</script>
Be sure to replace YOUR_CASTLE_APP_ID
with your site identifier provided after registration.
Usage
See Castle Docs for more information.
Changelog
- 1.8.0 – bug fixes
- 1.7.7 – bug fixes and stability improvements
- 1.7.6 – internal enhancements
- 1.7.5 – disabled auto page tracking (it can be enabled with
_castle("autoTrack", true)
) - 1.7.4 – bug fixes and performance improvements
- 1.7.3 – internal enhancements
- 1.7.2 – introduced
_castle("createRequestToken")
- 1.7.1 – performance improvements
- 1.7.0 – introduction of a new token version, external dependencies removal
- 1.6.0 – support for multiple versions of tokens
Upgrade Instructions
For a better user experience, we recommend upgrading through version 1.6.0
if your current library version is lower.
Example: If you are currently using the 1.5.1
version, please upgrade to the 1.6.0
version, and then to the latest one.
License
MIT