is-antibot 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "is-antibot",
3
3
  "description": "Detect antibot protection from 30+ providers — Cloudflare, Akamai, DataDome, PerimeterX, and more.",
4
4
  "homepage": "https://antibot.microlink.io/",
5
- "version": "2.4.0",
5
+ "version": "2.5.0",
6
6
  "types": "./src/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
package/src/index.d.ts CHANGED
@@ -42,6 +42,7 @@ declare namespace isAntibot {
42
42
  | 'weibo'
43
43
  | 'dribbble'
44
44
  | 'douban'
45
+ | 'cloudfront'
45
46
 
46
47
  interface Input {
47
48
  headers?: HeadersLike
@@ -1011,6 +1011,34 @@
1011
1011
  ]
1012
1012
  }
1013
1013
  ]
1014
+ },
1015
+ {
1016
+ "name": "cloudfront",
1017
+ "label": "CloudFront",
1018
+ "category": "antibot",
1019
+ "detections": [
1020
+ {
1021
+ "type": "headers",
1022
+ "technique": "waf",
1023
+ "statusCodes": [403, 502, 503, 504],
1024
+ "rules": [
1025
+ {
1026
+ "header": "x-cache",
1027
+ "startsWith": "Error from cloudfront"
1028
+ }
1029
+ ]
1030
+ },
1031
+ {
1032
+ "type": "html",
1033
+ "technique": "waf",
1034
+ "statusCodes": [403, 502, 503, 504],
1035
+ "rules": [
1036
+ {
1037
+ "contains": "The request could not be satisfied"
1038
+ }
1039
+ ]
1040
+ }
1041
+ ]
1014
1042
  }
1015
1043
  ]
1016
1044
  }