@liberstudio/cloudflare-list 2.4.4 → 2.4.6
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/LICENSE +0 -0
- package/README.md +0 -0
- package/dist/utils/googlebot.util.js +7 -4
- package/package.json +2 -2
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
@@ -8,11 +8,14 @@ exports.googleBotOverlapsCidr = googleBotOverlapsCidr;
|
|
|
8
8
|
const axios_1 = __importDefault(require("axios"));
|
|
9
9
|
const dns_1 = require("dns");
|
|
10
10
|
const cidr_util_1 = require("./cidr.util");
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
11
|
+
// common-crawlers.json = Googlebot Search + altri crawler comuni, con range IP
|
|
12
|
+
// stretti. NB: il vecchio URL .../search/apis/ipranges/googlebot.json è stato
|
|
13
|
+
// dismesso da Google (risponde "Temporarily Broken") — questo è il rimpiazzo
|
|
14
|
+
// ufficiale indicato da Google. special-crawlers e user-triggered-fetchers li
|
|
15
|
+
// escludiamo di proposito: includono range GCP molto ampi (Lighthouse, PageSpeed,
|
|
16
|
+
// Feed Fetcher) e causano falsi positivi — non meritano protezione "skip ban".
|
|
14
17
|
const GOOGLE_IP_LIST_URLS = [
|
|
15
|
-
"https://developers.google.com/static/
|
|
18
|
+
"https://developers.google.com/static/crawling/ipranges/common-crawlers.json",
|
|
16
19
|
];
|
|
17
20
|
// Domini dei crawler verificati da Google (per il fallback reverse DNS).
|
|
18
21
|
// NB: .googleusercontent.com è escluso di proposito — è il PTR generico di ogni
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liberstudio/cloudflare-list",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.6",
|
|
4
4
|
"description": "Modulo NestJS per gestione IP List Cloudflare",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"simple-git-hooks": {
|
|
25
|
-
"pre-commit": "
|
|
25
|
+
"pre-commit": "[ -f \"$HOME/.bashrc\" ] && \\. \"$HOME/.bashrc\"; export NVM_DIR=\"$HOME/.nvm\"; [ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\"; npm run version:bump && git add package.json package-lock.json"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@nestjs/axios": ">=3.0.0",
|