laravel-validation-rules / ip

Licence: Apache-2.0 license
Validate if an ip address is public or private.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to ip

Spoofmac
💼 Change your MAC address for debugging
Stars: ✭ 2,687 (+17813.33%)
Mutual labels:  ip
cisco-ip-trace
Trace IP addresses to edge Cisco switch port
Stars: ✭ 65 (+333.33%)
Mutual labels:  ip
cloudflare-ddns
A script to update your Cloudflare DNS records at a glance.
Stars: ✭ 152 (+913.33%)
Mutual labels:  ip
PSRule.Rules.CAF
A suite of rules to validate Azure resources against the Cloud Adoption Framework (CAF) using PSRule.
Stars: ✭ 54 (+260%)
Mutual labels:  rule
Slim-Restrict-Route
A Slim middleware to restrict ip addresses that will access to your routes
Stars: ✭ 21 (+40%)
Mutual labels:  ip
rules-framework
A generic rules framework that allows defining and evaluating rules for complex business scenarios.
Stars: ✭ 35 (+133.33%)
Mutual labels:  rule
Axi
AXI SystemVerilog synthesizable IP modules and verification infrastructure for high-performance on-chip communication
Stars: ✭ 227 (+1413.33%)
Mutual labels:  ip
pikaz-location
定位插件(限中国)
Stars: ✭ 78 (+420%)
Mutual labels:  ip
tcpview
TcpView For Linux
Stars: ✭ 62 (+313.33%)
Mutual labels:  ip
go-external-ip
a Golang library to get your external ip from multiple services
Stars: ✭ 55 (+266.67%)
Mutual labels:  ip
GeoLite2-City
GeoLite2-City.mmdb.gz CDN files based on Free Open Source CDN jsDelivr!
Stars: ✭ 170 (+1033.33%)
Mutual labels:  ip
koa-ip-filter
koa middleware to filter request IPs or custom ID with glob patterns, array, string, regexp or matcher function. Support custom 403 Forbidden message and custom ID.
Stars: ✭ 23 (+53.33%)
Mutual labels:  ip
spec-pattern
Specification design pattern for JavaScript and TypeScript with bonus classes
Stars: ✭ 43 (+186.67%)
Mutual labels:  rule
IPpy
🚀 Ping IP addresses and domains in parallel to find the accessible and inaccessible ones.
Stars: ✭ 54 (+260%)
Mutual labels:  ip
ipinfo
A wrapper around the ipinfo.io services
Stars: ✭ 51 (+240%)
Mutual labels:  ip
Mercury
Mercury is a hacking tool used to collect information and use the information to further hurt the target
Stars: ✭ 236 (+1473.33%)
Mutual labels:  ip
ipsourcebypass
This Python script can be used to bypass IP source restrictions using HTTP headers.
Stars: ✭ 326 (+2073.33%)
Mutual labels:  ip
uzakel
Verimerkezleri Arası IP Engelleme Sistemi
Stars: ✭ 17 (+13.33%)
Mutual labels:  ip
node-ip2region
IP/IPv6 to region on Node.js (IP/IPv6 地址到区域运营商)
Stars: ✭ 95 (+533.33%)
Mutual labels:  ip
laravel-email-domain-rule
A package to validate email domains in a user registration form
Stars: ✭ 60 (+300%)
Mutual labels:  rule

IP

Validates an ip address is either public or private. Supports ipv4 & ipv6.

Installation

composer require laravel-validation-rules/ip

Usage

Validate an ip address is a public address.

use LVR\IP\PublicAddress;

$request->validate([
    'ip' => ['required', new PublicAddress],
]);

Validate an ip address is a private address.

use LVR\IP\PrivateAddress;

$request->validate([
    'ip' => ['required', new PrivateAddress],
]);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].