@cylution/is-cloudflare-ip
Version:
check if request IP come from Cloudflare
11 lines (10 loc) • 354 B
TypeScript
import { SubnetInfo } from 'ip';
export declare const parseList: (res: string) => string[];
export declare const getV4List: () => Promise<string>;
export declare const getV6List: () => Promise<string>;
declare type SubnetInfos = {
v4: SubnetInfo[];
v6: SubnetInfo[];
};
export declare const getSubnetInfos: () => Promise<SubnetInfos>;
export {};