| Location |
<% if ip_info.dig(:location, :city) %>
<%= ip_info.dig(:location, :city) %>,
<% end %>
<% if ip_info.dig(:location, :region, :name).present? %>
<%= ip_info.dig(:location, :region, :name) %>,
<% end %>
<%= ip_info.dig(:location, :country, :name) %>
|
| Network |
<%= link_to ip_info.dig(:connection, :route), ip_addresses_path(search: { ip_addr: ip_info.dig(:connection, :route) }) %>
(<%= link_to "info", "https://ipinfo.io/AS#{ip_info.dig(:connection, :asn)}/#{ip_info.dig(:connection, :route)}" %>)
|
| Proxy |
<%= ip_address.lookup.is_proxy? ? "yes" : "no" %> |
| IP Banned |
<% if IpBan.ip_matches(ip_address.ip_addr.to_s).exists? %>
yes (<%= link_to "info", ip_bans_path(search: { ip_addr: ip_address.to_s }) %>)
<% else %>
no
<% end %>
|
| Type |
<%= ip_info.dig(:connection, :type) %> |
| ASN |
<%= link_to "AS#{ip_info.dig(:connection, :asn)}", "https://ipinfo.io/AS#{ip_info.dig(:connection, :asn)}" %>
|
| Organization |
<%= ip_info.dig(:connection, :organization) %>
|
<% if ip_info.dig(:carrier, :name).present? %>
| Mobile Carrier |
<%= ip_info.dig(:carrier, :name) %> |
<% end %>
| Website |
<%= external_link_to("http://#{ip_info.dig(:connection, :domain)}") %> |
| Details |
<%= JSON.pretty_generate(ip_info) %>
|