internetdata 2.18.0 → 2.20.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.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/internetdata/api/database_v2_api.rb +1 -1
- data/lib/internetdata/api_client.rb +1 -1
- data/lib/internetdata/api_error.rb +1 -1
- data/lib/internetdata/api_model_base.rb +1 -1
- data/lib/internetdata/cache.rb +4 -3
- data/lib/internetdata/configuration.rb +1 -1
- data/lib/internetdata/middleware/core.rb +94 -19
- data/lib/internetdata/middleware/crawlers.rb +74 -0
- data/lib/internetdata/models/abuse_contact.rb +1 -1
- data/lib/internetdata/models/asn.rb +2 -19
- data/lib/internetdata/models/asn_hosted_domains.rb +1 -1
- data/lib/internetdata/models/asn_lookup_response.rb +1 -1
- data/lib/internetdata/models/asn_prefix.rb +1 -1
- data/lib/internetdata/models/batch_lookup_error.rb +1 -1
- data/lib/internetdata/models/bit_torrent_detail.rb +1 -1
- data/lib/internetdata/models/bot_detail.rb +1 -1
- data/lib/internetdata/models/carrier_detail.rb +1 -1
- data/lib/internetdata/models/class_detail.rb +1 -1
- data/lib/internetdata/models/client_registration.rb +1 -1
- data/lib/internetdata/models/cohosted_domains.rb +1 -1
- data/lib/internetdata/models/company.rb +1 -1
- data/lib/internetdata/models/database.rb +1 -5
- data/lib/internetdata/models/database_checksums_response.rb +1 -1
- data/lib/internetdata/models/database_format.rb +2 -3
- data/lib/internetdata/models/database_list.rb +1 -1
- data/lib/internetdata/models/database_metadata.rb +1 -1
- data/lib/internetdata/models/database_metadata_column.rb +1 -1
- data/lib/internetdata/models/database_version.rb +1 -1
- data/lib/internetdata/models/db_checksums.rb +1 -1
- data/lib/internetdata/models/device_authorization.rb +1 -1
- data/lib/internetdata/models/disposable_detail.rb +1 -1
- data/lib/internetdata/models/dns_address_record.rb +1 -1
- data/lib/internetdata/models/dns_cname_record.rb +1 -1
- data/lib/internetdata/models/dns_mx_record.rb +1 -1
- data/lib/internetdata/models/dns_ns_record.rb +1 -1
- data/lib/internetdata/models/dns_resolver_detail.rb +1 -1
- data/lib/internetdata/models/domain_backlinks.rb +1 -1
- data/lib/internetdata/models/domain_dns.rb +1 -1
- data/lib/internetdata/models/domain_host.rb +1 -1
- data/lib/internetdata/models/domain_ip_range.rb +1 -1
- data/lib/internetdata/models/domain_ip_ranges.rb +1 -1
- data/lib/internetdata/models/domain_lookup_response.rb +1 -1
- data/lib/internetdata/models/domain_redirects.rb +1 -1
- data/lib/internetdata/models/domain_web.rb +1 -1
- data/lib/internetdata/models/domain_web_links.rb +1 -1
- data/lib/internetdata/models/download.rb +1 -5
- data/lib/internetdata/models/download_list.rb +1 -1
- data/lib/internetdata/models/entitlement.rb +1 -1
- data/lib/internetdata/models/entitlement_apikey.rb +1 -1
- data/lib/internetdata/models/entitlement_plan.rb +2 -6
- data/lib/internetdata/models/entitlement_usage.rb +1 -1
- data/lib/internetdata/models/error_envelope.rb +1 -1
- data/lib/internetdata/models/hosted_domains.rb +1 -1
- data/lib/internetdata/models/location.rb +1 -1
- data/lib/internetdata/models/lookup_response.rb +9 -145
- data/lib/internetdata/models/oauth_metadata.rb +1 -1
- data/lib/internetdata/models/proxy_detail.rb +1 -1
- data/lib/internetdata/models/pubproxy_detail.rb +1 -1
- data/lib/internetdata/models/rwhois.rb +1 -1
- data/lib/internetdata/models/satellite_detail.rb +1 -1
- data/lib/internetdata/models/smtp_detail.rb +1 -1
- data/lib/internetdata/models/ssh_detail.rb +1 -1
- data/lib/internetdata/models/standing.rb +2 -3
- data/lib/internetdata/models/token_response.rb +1 -1
- data/lib/internetdata/models/user_agent_verdict.rb +1 -5
- data/lib/internetdata/models/web_detail.rb +1 -1
- data/lib/internetdata/models/whois.rb +1 -1
- data/lib/internetdata/result.rb +17 -12
- data/lib/internetdata/transport.rb +16 -5
- data/lib/internetdata/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 38eb0c38fc67669b6bc5197ac24b6cd7ef6298ed730d15cece31ad1f87c598dc
|
|
4
|
+
data.tar.gz: 8bb00098bc8b7bb037e7cdbd47f29ae8704d21048887d87e42d0867a5892e14f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c11694442899c1c5d9fa59413928c3ba6cd2e8d5afef91c66d40235c52c8cd96a146a6d017720b8686482b64386edc323258a4789ca868985191eea71e4788e6
|
|
7
|
+
data.tar.gz: c21cbe575712211fa03a803e7cb40488304d8233f61b450bcb744b7657e9ff2e92f128765f0aaec5c93345c9cd3417fa0bd2f5dad4e782757389fc06d39cf8e0
|
data/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Requires Ruby 3.3 or newer, and libcurl at runtime, which the `curl` package bri
|
|
|
23
23
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
|
-
**No API key needed to start.** Unlimited, the free plan, answers an address's location, network, company, abuse contact and reverse DNS, and its Tor, relay
|
|
26
|
+
**No API key needed to start.** Unlimited, the free plan, answers an address's location, network, company, abuse contact and reverse DNS, and its Tor, relay and anycast flags, with no daily or monthly cap, with a key or without one.
|
|
27
27
|
|
|
28
28
|
```ruby
|
|
29
29
|
require 'internetdata'
|
|
@@ -84,6 +84,8 @@ acct.usage.window_end # => when the allowance resets
|
|
|
84
84
|
|
|
85
85
|
Usage counts against the anniversary of your subscription on a paid plan, not the calendar month and not the billing period, and against its trial on the free plan; it is the same number a lookup is gated on. `hard_limit` is `nil` on an uncapped plan, which is not the same as zero.
|
|
86
86
|
|
|
87
|
+
Show `plan.name` and compare against `plan.key`: a plan's name can change, and its key never does. A value the API adds later to a plan's `tier`, a database's `standing` or `license_type`, a format or a download's `outcome` comes back as the string it served (from 2.20.0), so check for the values you know rather than assuming the list is complete.
|
|
88
|
+
|
|
87
89
|
### Is that crawler who it says it is?
|
|
88
90
|
|
|
89
91
|
Pass the `User-Agent` of the request you are deciding on, and with every field (a paid plan, or a free account's trial) the answer says whose agent it names and whether this address bears that out:
|
|
@@ -315,7 +317,7 @@ Each redirect URI must be https on a public host name, or http on a loopback add
|
|
|
315
317
|
|
|
316
318
|
### Absent is not false
|
|
317
319
|
|
|
318
|
-
Unlimited leaves out the VPN, proxy, hosting and
|
|
320
|
+
Unlimited leaves out the VPN, proxy, hosting, CDN, bot, carrier, satellite, SSH, SMTP, web, DNS resolver and BitTorrent flags and their detail (`bot` names the bot behind `is_bot`), an address's city and the rest of its paid location, its Whois, RWHOIS and hosted domains, and the paid members inside each shared object, such as `abuse['phone']`. A free-plan key's answer carries `trial_expired`, true once its trial is spent. A paid key's carries `cap_reached`, true once its organization's overage cap is reached, when the answer has Unlimited's fields and isn't billed. A field is present when your plan includes it and `nil` when it does not. `nil` means "not in your plan"; `false` means "we checked, and no".
|
|
319
321
|
|
|
320
322
|
```ruby
|
|
321
323
|
result.vpn? # false when absent, for when you only want the flag
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
data/lib/internetdata/cache.rb
CHANGED
|
@@ -10,9 +10,10 @@ module InternetData
|
|
|
10
10
|
# serve one of them the other's shape. Errors are never stored and bogons
|
|
11
11
|
# never reach it.
|
|
12
12
|
#
|
|
13
|
-
# A reduced answer, a spent trial's or a reached cap's, ends with
|
|
14
|
-
#
|
|
15
|
-
#
|
|
13
|
+
# A reduced answer, a spent trial's or a reached cap's, ends with the
|
|
14
|
+
# allowance's window (on the free plan, its trial's) or a raised cap, so it
|
|
15
|
+
# stays a minute at most rather than the TTL. It is still cached, or a busy
|
|
16
|
+
# process would send every repeat to the API.
|
|
16
17
|
class Cache
|
|
17
18
|
# The longest a spent trial's or a reached cap's answer is held, in seconds.
|
|
18
19
|
REDUCED_TTL = 60
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'digest'
|
|
4
|
+
require 'lru_redux'
|
|
5
|
+
|
|
3
6
|
require_relative 'condition'
|
|
7
|
+
require_relative 'crawlers'
|
|
4
8
|
|
|
5
9
|
module InternetData
|
|
6
10
|
# The framework-agnostic half of a web middleware: resolve a client address,
|
|
@@ -27,6 +31,25 @@ module InternetData
|
|
|
27
31
|
DEFAULT_TIMEOUT = 2.5
|
|
28
32
|
DEFAULT_RETRIES = 0
|
|
29
33
|
|
|
34
|
+
# The most crawler agents one address is looked up with while it is remembered.
|
|
35
|
+
MAX_AGENTS_PER_ADDRESS = 4
|
|
36
|
+
|
|
37
|
+
# How long an address's crawler agents are remembered, from its first one: the
|
|
38
|
+
# client's default cache TTL.
|
|
39
|
+
AGENTS_TTL = 60 * 60
|
|
40
|
+
|
|
41
|
+
# How many addresses' agents are remembered at once.
|
|
42
|
+
AGENTS_MAX_ADDRESSES = 10_000
|
|
43
|
+
private_constant :AGENTS_TTL, :AGENTS_MAX_ADDRESSES
|
|
44
|
+
|
|
45
|
+
# Whether a `User-Agent` names a crawler, the only kind of agent whose verdict
|
|
46
|
+
# can be `verified` or `spoofed`. It errs toward a match, which costs a lookup.
|
|
47
|
+
# Case is folded for A to Z alone, as the corpus's terms are written.
|
|
48
|
+
def self.names_crawler?(agent)
|
|
49
|
+
lower = agent.b.downcase(:ascii)
|
|
50
|
+
Crawlers::TERMS.any? { |term| lower.include?(term) }
|
|
51
|
+
end
|
|
52
|
+
|
|
30
53
|
# Reads a request's `User-Agent` where the adapter names no reader: Rack's
|
|
31
54
|
# request has `user_agent`, and so do Sinatra's and Hanami's.
|
|
32
55
|
DEFAULT_USER_AGENT = ->(request) { request.user_agent if request.respond_to?(:user_agent) }
|
|
@@ -38,18 +61,23 @@ module InternetData
|
|
|
38
61
|
# @param user_agent_of [#call] reads the request's own `User-Agent`, which
|
|
39
62
|
# `allow_bots: true` sends with the lookup.
|
|
40
63
|
# @option options [Boolean] :allow_bots (false) send the request's own
|
|
41
|
-
# `User-Agent` with its lookup
|
|
42
|
-
# says `user_agent.verdict` is `verified`,
|
|
43
|
-
# matches; the answer is still attached.
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
#
|
|
64
|
+
# `User-Agent` with its lookup when it names a crawler, and never refuse
|
|
65
|
+
# a request whose answer says `user_agent.verdict` is `verified`,
|
|
66
|
+
# whatever the condition matches; the answer is still attached. Any other
|
|
67
|
+
# agent, an absent or an empty header sends none, since the verdict could
|
|
68
|
+
# only be `not_bot`. One address is looked up with at most
|
|
69
|
+
# {MAX_AGENTS_PER_ADDRESS} crawler agents an hour: past those, the lookup
|
|
70
|
+
# sends none, and the request passes as a crawler only where the answer's
|
|
71
|
+
# `bot.verified` is true. A keyless client, or a free key past its trial,
|
|
72
|
+
# never gets a verdict, so nothing is let through there, and that is
|
|
73
|
+
# warned of once under `on_missing_field`.
|
|
47
74
|
def initialize(default_ip_selector, user_agent_of = DEFAULT_USER_AGENT, **options)
|
|
48
75
|
Condition.validate!(options[:block_condition])
|
|
49
76
|
@condition = options[:block_condition]
|
|
50
77
|
@selector = options[:ip_selector] || default_ip_selector
|
|
51
78
|
@allow_bots = options.fetch(:allow_bots, false) == true
|
|
52
79
|
@user_agent_of = user_agent_of
|
|
80
|
+
@agents = @allow_bots ? CrawlerAgents.new : nil
|
|
53
81
|
@fail_closed = options.fetch(:fail_closed, false)
|
|
54
82
|
@on_missing_field = options.fetch(:on_missing_field, :warn)
|
|
55
83
|
@skip = options[:skip]
|
|
@@ -92,13 +120,14 @@ module InternetData
|
|
|
92
120
|
end
|
|
93
121
|
|
|
94
122
|
# A bogon is answered locally, so nothing is sent for it.
|
|
95
|
-
|
|
123
|
+
claim = @allow_bots && !Bogon.bogon?(ip) ? claim_agent(ip, request) : nil
|
|
124
|
+
agent = claim&.agent
|
|
96
125
|
begin
|
|
97
126
|
result = @client.lookup(ip, retries: @retries, **(agent ? { user_agent: agent } : {}))
|
|
98
127
|
rescue InternetData::Error => e
|
|
99
128
|
return Lookup.new(blocked: @fail_closed, ip: ip, error: e)
|
|
100
129
|
end
|
|
101
|
-
decide(ip, result,
|
|
130
|
+
decide(ip, result, claim)
|
|
102
131
|
end
|
|
103
132
|
|
|
104
133
|
private
|
|
@@ -114,37 +143,47 @@ module InternetData
|
|
|
114
143
|
)
|
|
115
144
|
end
|
|
116
145
|
|
|
117
|
-
#
|
|
118
|
-
|
|
146
|
+
# What this request's agent comes to: nil when it names no crawler (or sent
|
|
147
|
+
# none), else a claim whose agent is the one to send, or nil past the
|
|
148
|
+
# address's bound.
|
|
149
|
+
def claim_agent(ip, request)
|
|
119
150
|
agent = @user_agent_of.call(request)
|
|
120
|
-
agent.is_a?(String) && !agent.empty? ?
|
|
151
|
+
return nil unless agent.is_a?(String) && !agent.empty? && Middleware.names_crawler?(agent)
|
|
152
|
+
|
|
153
|
+
Claim.new(@agents.admit(ip, agent))
|
|
121
154
|
end
|
|
122
155
|
|
|
123
|
-
def decide(ip, result,
|
|
124
|
-
report_unanswered_agent(result) unless agent.nil?
|
|
156
|
+
def decide(ip, result, claim)
|
|
157
|
+
report_unanswered_agent(result) unless claim&.agent.nil?
|
|
125
158
|
return Lookup.new(blocked: false, ip: ip, result: result) if @condition.nil?
|
|
126
159
|
|
|
127
|
-
report_missing(result)
|
|
160
|
+
report_missing(result, sent: !claim&.agent.nil?)
|
|
128
161
|
Lookup.new(
|
|
129
|
-
blocked: Condition.matches?(@condition, result) && !verified?(result),
|
|
162
|
+
blocked: Condition.matches?(@condition, result) && !verified?(result, claim),
|
|
130
163
|
ip: ip,
|
|
131
164
|
result: result
|
|
132
165
|
)
|
|
133
166
|
end
|
|
134
167
|
|
|
135
168
|
# Whether `allow_bots` lets this answer through: its agent's operator
|
|
136
|
-
# vouches for the address
|
|
137
|
-
|
|
138
|
-
|
|
169
|
+
# vouches for the address, or, past the bound, the answer says a crawler's
|
|
170
|
+
# operator does.
|
|
171
|
+
def verified?(result, claim)
|
|
172
|
+
return false if claim.nil?
|
|
173
|
+
return result.bot.is_a?(Hash) && result.bot['verified'] == true if claim.agent.nil?
|
|
174
|
+
|
|
175
|
+
result.user_agent.is_a?(Hash) && result.user_agent['verdict'] == 'verified'
|
|
139
176
|
end
|
|
140
177
|
|
|
141
|
-
def report_missing(result)
|
|
178
|
+
def report_missing(result, sent:)
|
|
142
179
|
return if @on_missing_field == :ignore
|
|
143
180
|
# A bogon is answered locally in the widest shape, which carries every
|
|
144
181
|
# member but `user_agent`, and no agent is sent for it.
|
|
145
182
|
return if result.bogon?
|
|
146
183
|
|
|
147
184
|
missing = Condition.missing_members(@condition, result)
|
|
185
|
+
# A request that sent no agent has no verdict to lack, whatever the plan serves.
|
|
186
|
+
missing -= ['user_agent'] if @allow_bots && !sent
|
|
148
187
|
return if missing.empty?
|
|
149
188
|
|
|
150
189
|
message = "block_condition names #{missing.join(', ')}, which your plan does not " \
|
|
@@ -183,6 +222,42 @@ module InternetData
|
|
|
183
222
|
end
|
|
184
223
|
end
|
|
185
224
|
|
|
225
|
+
# A crawler's agent as one request makes it: `agent` is what the lookup sends,
|
|
226
|
+
# nil once the address is past its bound.
|
|
227
|
+
Claim = Struct.new(:agent)
|
|
228
|
+
private_constant :Claim
|
|
229
|
+
|
|
230
|
+
# The crawler agents each address was looked up with. An address claiming more
|
|
231
|
+
# than MAX_AGENTS_PER_ADDRESS of them in an hour sends none past those, so a
|
|
232
|
+
# visitor inventing an agent per request spends at most that many lookups.
|
|
233
|
+
#
|
|
234
|
+
# An agent is kept as its digest, so what an address costs in memory is
|
|
235
|
+
# bounded whatever length of header it sends. Adding one changes the stored
|
|
236
|
+
# list in place, which leaves the address's hour running from its first.
|
|
237
|
+
class CrawlerAgents
|
|
238
|
+
def initialize
|
|
239
|
+
@seen = LruRedux::TTL::Cache.new(AGENTS_MAX_ADDRESSES, AGENTS_TTL)
|
|
240
|
+
@lock = Mutex.new
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# The agent to send for `ip`, or nil once the address has its bound.
|
|
244
|
+
def admit(ip, agent)
|
|
245
|
+
digest = Digest::SHA256.digest(agent)
|
|
246
|
+
@lock.synchronize do
|
|
247
|
+
known = @seen[ip]
|
|
248
|
+
if known.nil?
|
|
249
|
+
@seen[ip] = [digest]
|
|
250
|
+
elsif !known.include?(digest)
|
|
251
|
+
return nil if known.length >= MAX_AGENTS_PER_ADDRESS
|
|
252
|
+
|
|
253
|
+
known << digest
|
|
254
|
+
end
|
|
255
|
+
agent
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
private_constant :CrawlerAgents
|
|
260
|
+
|
|
186
261
|
# The shared client-address selectors, bound to one framework's request type.
|
|
187
262
|
#
|
|
188
263
|
# There is no portable default: a framework's own accessor may return the
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Generated. Do not edit: a regeneration overwrites it.
|
|
2
|
+
# Lowercase substrings, one of which a crawler's ASCII-lowercased User-Agent contains.
|
|
3
|
+
|
|
4
|
+
module InternetData
|
|
5
|
+
module Middleware
|
|
6
|
+
module Crawlers
|
|
7
|
+
TERMS = [
|
|
8
|
+
'+http',
|
|
9
|
+
'ahrefssiteaudit',
|
|
10
|
+
'amzn-user',
|
|
11
|
+
'anthropic-ai',
|
|
12
|
+
'barkrowler',
|
|
13
|
+
'better stack',
|
|
14
|
+
'betterstack',
|
|
15
|
+
'bingpreview',
|
|
16
|
+
'bot',
|
|
17
|
+
'censysinspect',
|
|
18
|
+
'chatgpt-user',
|
|
19
|
+
'claude-user',
|
|
20
|
+
'claude-web',
|
|
21
|
+
'cohere-ai',
|
|
22
|
+
'crawl',
|
|
23
|
+
'datadogsynthetics',
|
|
24
|
+
'embedly',
|
|
25
|
+
'expanse',
|
|
26
|
+
'facebookcatalog',
|
|
27
|
+
'facebookexternalhit',
|
|
28
|
+
'flipboardproxy',
|
|
29
|
+
'flipboardrss',
|
|
30
|
+
'github-hookshot/',
|
|
31
|
+
'google-agent',
|
|
32
|
+
'google-extended',
|
|
33
|
+
'google-inspectiontool',
|
|
34
|
+
'google-read-aloud',
|
|
35
|
+
'google-site-verification',
|
|
36
|
+
'googleother',
|
|
37
|
+
'iframely',
|
|
38
|
+
'internetmeasurement',
|
|
39
|
+
'keenable-user',
|
|
40
|
+
'lumar',
|
|
41
|
+
'masscan',
|
|
42
|
+
'mediapartners-google',
|
|
43
|
+
'meta-externalagent',
|
|
44
|
+
'meta-externalfetcher',
|
|
45
|
+
'meta-webindexer',
|
|
46
|
+
'mistralai-user',
|
|
47
|
+
'nmap',
|
|
48
|
+
'notebooklm',
|
|
49
|
+
'nuclei',
|
|
50
|
+
'paloaltonetworks.com',
|
|
51
|
+
'parse.ly',
|
|
52
|
+
'parsely.com',
|
|
53
|
+
'perplexity-user',
|
|
54
|
+
'pingdom',
|
|
55
|
+
'pinterest',
|
|
56
|
+
'rssapi/',
|
|
57
|
+
'screaming frog',
|
|
58
|
+
'site24x7',
|
|
59
|
+
'skypeuripreview',
|
|
60
|
+
'slack-imgproxy',
|
|
61
|
+
'slurp',
|
|
62
|
+
'sogou',
|
|
63
|
+
'spider',
|
|
64
|
+
'statuscake',
|
|
65
|
+
'stripe/1.0',
|
|
66
|
+
'ttd-content',
|
|
67
|
+
'whatsapp',
|
|
68
|
+
'yandex',
|
|
69
|
+
'yeti/',
|
|
70
|
+
'zgrab',
|
|
71
|
+
].freeze
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -25,7 +25,7 @@ module InternetData
|
|
|
25
25
|
# Its operator's domain.
|
|
26
26
|
attr_accessor :domain
|
|
27
27
|
|
|
28
|
-
# The kind of network it runs.
|
|
28
|
+
# The kind of network it runs. On a paid plan or the trial.
|
|
29
29
|
attr_accessor :type
|
|
30
30
|
|
|
31
31
|
# The announced prefix covering the address.
|
|
@@ -115,8 +115,6 @@ module InternetData
|
|
|
115
115
|
|
|
116
116
|
if attributes.key?(:'type')
|
|
117
117
|
self.type = attributes[:'type']
|
|
118
|
-
else
|
|
119
|
-
self.type = nil
|
|
120
118
|
end
|
|
121
119
|
|
|
122
120
|
if attributes.key?(:'prefix')
|
|
@@ -155,10 +153,6 @@ module InternetData
|
|
|
155
153
|
invalid_properties.push('invalid value for "domain", domain cannot be nil.')
|
|
156
154
|
end
|
|
157
155
|
|
|
158
|
-
if @type.nil?
|
|
159
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
160
|
-
end
|
|
161
|
-
|
|
162
156
|
if @prefix.nil?
|
|
163
157
|
invalid_properties.push('invalid value for "prefix", prefix cannot be nil.')
|
|
164
158
|
end
|
|
@@ -181,7 +175,6 @@ module InternetData
|
|
|
181
175
|
return false if @asn.nil?
|
|
182
176
|
return false if @name.nil?
|
|
183
177
|
return false if @domain.nil?
|
|
184
|
-
return false if @type.nil?
|
|
185
178
|
return false if @prefix.nil?
|
|
186
179
|
return false if @country.nil?
|
|
187
180
|
return false if @rpki_status.nil?
|
|
@@ -218,16 +211,6 @@ module InternetData
|
|
|
218
211
|
@domain = domain
|
|
219
212
|
end
|
|
220
213
|
|
|
221
|
-
# Custom attribute writer method with validation
|
|
222
|
-
# @param [Object] type Value to be assigned
|
|
223
|
-
def type=(type)
|
|
224
|
-
if type.nil?
|
|
225
|
-
fail ArgumentError, 'type cannot be nil'
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
@type = type
|
|
229
|
-
end
|
|
230
|
-
|
|
231
214
|
# Custom attribute writer method with validation
|
|
232
215
|
# @param [Object] prefix Value to be assigned
|
|
233
216
|
def prefix=(prefix)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -308,10 +308,6 @@ module InternetData
|
|
|
308
308
|
# Custom attribute writer method checking allowed values (enum).
|
|
309
309
|
# @param [Object] license_type Object to be assigned
|
|
310
310
|
def license_type=(license_type)
|
|
311
|
-
validator = EnumAttributeValidator.new('String', ["evaluation", "standard", "redistribute"])
|
|
312
|
-
unless validator.valid?(license_type)
|
|
313
|
-
fail ArgumentError, "invalid value for \"license_type\", must be one of #{validator.allowable_values}."
|
|
314
|
-
end
|
|
315
311
|
@license_type = license_type
|
|
316
312
|
end
|
|
317
313
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -33,8 +33,7 @@ module InternetData
|
|
|
33
33
|
# @param [String] The enum value in the form of the string
|
|
34
34
|
# @return [String] The enum value
|
|
35
35
|
def build_from_hash(value)
|
|
36
|
-
|
|
37
|
-
raise "Invalid ENUM value #{value} for class #DatabaseFormat"
|
|
36
|
+
value
|
|
38
37
|
end
|
|
39
38
|
end
|
|
40
39
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.27
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|