@hyperwatch/hyperwatch 4.1.0 → 4.2.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 +1 -1
- package/src/modules/identity.js +22 -0
package/package.json
CHANGED
package/src/modules/identity.js
CHANGED
|
@@ -229,6 +229,28 @@ function augment(log) {
|
|
|
229
229
|
return address && new IPCIDR('203.133.160.0/19').contains(address)
|
|
230
230
|
? log.set('identity', family)
|
|
231
231
|
: log;
|
|
232
|
+
case 'OAI-SearchBot':
|
|
233
|
+
// https://openai.com/searchbot.json
|
|
234
|
+
return address &&
|
|
235
|
+
(new IPCIDR('20.42.10.176/28').contains(address) ||
|
|
236
|
+
new IPCIDR('172.203.190.128/28').contains(address) ||
|
|
237
|
+
new IPCIDR('51.8.102.0/24').contains(address))
|
|
238
|
+
? log.set('identity', 'OpenAI SearchBot')
|
|
239
|
+
: log;
|
|
240
|
+
case 'GPTBot':
|
|
241
|
+
// https://openai.com/gptbot.json
|
|
242
|
+
return address &&
|
|
243
|
+
(new IPCIDR('52.230.152.0/24').contains(address) ||
|
|
244
|
+
new IPCIDR('52.233.106.0/24').contains(address) ||
|
|
245
|
+
new IPCIDR('20.171.206.0/24').contains(address) ||
|
|
246
|
+
new IPCIDR('20.171.207.0/24').contains(address) ||
|
|
247
|
+
new IPCIDR('4.227.36.0/25').contains(address))
|
|
248
|
+
? log.set('identity', 'OpenAI GPTBot')
|
|
249
|
+
: log;
|
|
250
|
+
case 'meta-externalagent':
|
|
251
|
+
return address && new IPCIDR('2a03:2880:f800::/48').contains(address)
|
|
252
|
+
? log.set('identity', 'Meta External Agent')
|
|
253
|
+
: log;
|
|
232
254
|
|
|
233
255
|
// EC2
|
|
234
256
|
case 'Raven':
|