Learn R Programming

ip2proxy (version 1.2.0)

is_proxy: Lookup for IP address proxy information

Description

Check whether if an IP address was a proxy.

Usage

is_proxy(ip)

Value

Return a digit value: -1 (errors), 0 (not a proxy), 1 (a proxy), and 2 (a data center IP address).

Arguments

ip

IPv4 or IPv6 address

Examples

Run this code
if (FALSE) {
is_proxy("1.0.241.135")
}

Run the code above in your browser using DataLab