添加ip判断中间件
Showing
with
11180 additions
and
246 deletions
app/Http/Controllers/InfoController.php
0 → 100644
app/Http/Middleware/CheckIp.php
0 → 100644
... | ... | @@ -12,11 +12,13 @@ |
"ext-json": "*", | ||
"fideloper/proxy": "^4.4", | ||
"fruitcake/laravel-cors": "^2.0", | ||
"geoip2/geoip2": "^2.13", | ||
"guzzlehttp/guzzle": "^6.3.1|^7.0.1", | ||
"laravel/framework": "^7.29", | ||
"laravel/tinker": "^2.5", | ||
"laravel/ui": "2.*", | ||
"loilo/fuse": "^3.6" | ||
"loilo/fuse": "^3.6", | ||
"torann/geoip": "^1.2" | ||
}, | ||
"require-dev": { | ||
"facade/ignition": "^2.0", | ||
... | ... |
config/geoip.php
0 → 100644
public/temp/GeoLite2-Country.mmdb
0 → 100644
No preview for this file type
vendor/composer/ca-bundle/LICENSE
0 → 100644
vendor/composer/ca-bundle/README.md
0 → 100644
vendor/composer/ca-bundle/composer.json
0 → 100644
{ | ||
"name": "composer/ca-bundle", | ||
"description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", | ||
"type": "library", | ||
"license": "MIT", | ||
"keywords": [ | ||
"cabundle", | ||
"cacert", | ||
"certificate", | ||
"ssl", | ||
"tls" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Jordi Boggiano", | ||
"email": "j.boggiano@seld.be", | ||
"homepage": "http://seld.be" | ||
} | ||
], | ||
"support": { | ||
"irc": "irc://irc.freenode.org/composer", | ||
"issues": "https://github.com/composer/ca-bundle/issues" | ||
}, | ||
"require": { | ||
"ext-openssl": "*", | ||
"ext-pcre": "*", | ||
"php": "^5.3.2 || ^7.0 || ^8.0" | ||
}, | ||
"require-dev": { | ||
"symfony/phpunit-bridge": "^4.2 || ^5", | ||
"phpstan/phpstan": "^0.12.55", | ||
"psr/log": "^1.0", | ||
"symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0 || ^6.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Composer\\CaBundle\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Composer\\CaBundle\\": "tests" | ||
} | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-main": "1.x-dev" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 vendor/bin/simple-phpunit", | ||
"phpstan": "vendor/bin/phpstan analyse" | ||
} | ||
} |
vendor/composer/ca-bundle/res/cacert.pem
0 → 100644
This diff could not be displayed because it is too large.
vendor/composer/ca-bundle/src/CaBundle.php
0 → 100644
vendor/geoip2/geoip2/CHANGELOG.md
0 → 100644
vendor/geoip2/geoip2/LICENSE
0 → 100644
vendor/geoip2/geoip2/README.md
0 → 100644
vendor/geoip2/geoip2/composer.json
0 → 100644
{ | ||
"name": "geoip2/geoip2", | ||
"description": "MaxMind GeoIP2 PHP API", | ||
"keywords": ["geoip", "geoip2", "geolocation", "ip", "maxmind"], | ||
"homepage": "https://github.com/maxmind/GeoIP2-php", | ||
"type": "library", | ||
"license": "Apache-2.0", | ||
"authors": [ | ||
{ | ||
"name": "Gregory J. Oschwald", | ||
"email": "goschwald@maxmind.com", | ||
"homepage": "https://www.maxmind.com/" | ||
} | ||
], | ||
"require": { | ||
"maxmind-db/reader": "~1.8", | ||
"maxmind/web-service-common": "~0.8", | ||
"php": ">=7.2", | ||
"ext-json": "*" | ||
}, | ||
"require-dev": { | ||
"friendsofphp/php-cs-fixer": "3.*", | ||
"phpunit/phpunit": "^8.0 || ^9.0", | ||
"squizlabs/php_codesniffer": "3.*", | ||
"phpstan/phpstan": "*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"GeoIp2\\": "src" | ||
} | ||
} | ||
} |
vendor/geoip2/geoip2/examples/benchmark.php
0 → 100644
vendor/geoip2/geoip2/src/Database/Reader.php
0 → 100644
vendor/geoip2/geoip2/src/Model/Asn.php
0 → 100644
vendor/geoip2/geoip2/src/Model/City.php
0 → 100644
vendor/geoip2/geoip2/src/Model/Country.php
0 → 100644
vendor/geoip2/geoip2/src/Model/Domain.php
0 → 100644
vendor/geoip2/geoip2/src/Model/Insights.php
0 → 100644
vendor/geoip2/geoip2/src/Model/Isp.php
0 → 100644
vendor/geoip2/geoip2/src/Record/City.php
0 → 100644
vendor/geoip2/geoip2/src/Record/Country.php
0 → 100644
vendor/geoip2/geoip2/src/Record/Location.php
0 → 100644
vendor/geoip2/geoip2/src/Record/MaxMind.php
0 → 100644
vendor/geoip2/geoip2/src/Record/Postal.php
0 → 100644
vendor/geoip2/geoip2/src/Record/Traits.php
0 → 100644
vendor/geoip2/geoip2/src/Util.php
0 → 100644
vendor/maxmind-db/reader/CHANGELOG.md
0 → 100644
vendor/maxmind-db/reader/LICENSE
0 → 100644
vendor/maxmind-db/reader/README.md
0 → 100644
vendor/maxmind-db/reader/autoload.php
0 → 100644
vendor/maxmind-db/reader/composer.json
0 → 100644
{ | ||
"name": "maxmind-db/reader", | ||
"description": "MaxMind DB Reader API", | ||
"keywords": ["database", "geoip", "geoip2", "geolocation", "maxmind"], | ||
"homepage": "https://github.com/maxmind/MaxMind-DB-Reader-php", | ||
"type": "library", | ||
"license": "Apache-2.0", | ||
"authors": [ | ||
{ | ||
"name": "Gregory J. Oschwald", | ||
"email": "goschwald@maxmind.com", | ||
"homepage": "https://www.maxmind.com/" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.2" | ||
}, | ||
"suggest": { | ||
"ext-bcmath": "bcmath or gmp is required for decoding larger integers with the pure PHP decoder", | ||
"ext-gmp": "bcmath or gmp is required for decoding larger integers with the pure PHP decoder", | ||
"ext-maxminddb": "A C-based database decoder that provides significantly faster lookups" | ||
}, | ||
"conflict": { | ||
"ext-maxminddb": "<1.10.1,>=2.0.0" | ||
}, | ||
"require-dev": { | ||
"friendsofphp/php-cs-fixer": "3.*", | ||
"phpunit/phpunit": ">=8.0.0,<10.0.0", | ||
"php-coveralls/php-coveralls": "^2.1", | ||
"phpunit/phpcov": ">=6.0.0", | ||
"squizlabs/php_codesniffer": "3.*", | ||
"phpstan/phpstan": "*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"MaxMind\\Db\\": "src/MaxMind/Db" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"MaxMind\\Db\\Test\\Reader\\": "tests/MaxMind/Db/Test/Reader" | ||
} | ||
} | ||
} |
vendor/maxmind-db/reader/ext/config.m4
0 → 100644
vendor/maxmind-db/reader/ext/config.w32
0 → 100644
vendor/maxmind-db/reader/ext/maxminddb.c
0 → 100644
vendor/maxmind-db/reader/ext/php_maxminddb.h
0 → 100644
vendor/maxmind-db/reader/package.xml
0 → 100644
vendor/maxmind/web-service-common/LICENSE
0 → 100644
vendor/maxmind/web-service-common/README.md
0 → 100644
{ | ||
"name": "maxmind/web-service-common", | ||
"description": "Internal MaxMind Web Service API", | ||
"minimum-stability": "stable", | ||
"homepage": "https://github.com/maxmind/web-service-common-php", | ||
"type": "library", | ||
"license": "Apache-2.0", | ||
"authors": [ | ||
{ | ||
"name": "Gregory Oschwald", | ||
"email": "goschwald@maxmind.com" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.2", | ||
"composer/ca-bundle": "^1.0.3", | ||
"ext-curl": "*", | ||
"ext-json": "*" | ||
}, | ||
"require-dev": { | ||
"friendsofphp/php-cs-fixer": "3.*", | ||
"phpunit/phpunit": "^8.0 || ^9.0", | ||
"squizlabs/php_codesniffer": "3.*", | ||
"phpstan/phpstan": "*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"MaxMind\\Exception\\": "src/Exception", | ||
"MaxMind\\WebService\\": "src/WebService" | ||
} | ||
} | ||
} |
vendor/torann/geoip/LICENSE
0 → 100644
vendor/torann/geoip/README.md
0 → 100644
vendor/torann/geoip/composer.json
0 → 100644
{ | ||
"name": "torann/geoip", | ||
"description": "Support for multiple GeoIP services.", | ||
"keywords": [ | ||
"laravel", | ||
"geoip", | ||
"location", | ||
"geolocation", | ||
"MaxMind", | ||
"IP API", | ||
"infoDB" | ||
], | ||
"license": "BSD-2-Clause", | ||
"authors": [ | ||
{ | ||
"name": "Daniel Stainback", | ||
"email": "torann@gmail.com" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.2", | ||
"illuminate/support": "^6.0|^7.0", | ||
"illuminate/console": "^6.0|^7.0" | ||
}, | ||
"suggest": { | ||
"geoip2/geoip2": "Required to use the MaxMind database or web service with GeoIP (~2.1).", | ||
"monolog/monolog": "Allows for storing location not found errors to the log" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^8.0", | ||
"mockery/mockery": "^1.3", | ||
"geoip2/geoip2": "~2.1", | ||
"vlucas/phpdotenv": "^4.0" | ||
}, | ||
"autoload": { | ||
"files": [ | ||
"src/helpers.php" | ||
], | ||
"psr-4": { | ||
"Torann\\GeoIP\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"files": [ | ||
"tests/TestFunctions.php" | ||
], | ||
"psr-4": { | ||
"Torann\\GeoIP\\Tests\\": "tests/" | ||
} | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0-dev" | ||
}, | ||
"laravel": { | ||
"providers": [ | ||
"Torann\\GeoIP\\GeoIPServiceProvider" | ||
], | ||
"aliases": { | ||
"GeoIP": "Torann\\GeoIP\\Facades\\GeoIP" | ||
} | ||
} | ||
} | ||
} |
vendor/torann/geoip/config/geoip.php
0 → 100644
vendor/torann/geoip/resources/geoip.mmdb
0 → 100644
No preview for this file type
vendor/torann/geoip/src/Cache.php
0 → 100644
vendor/torann/geoip/src/Console/Clear.php
0 → 100644
vendor/torann/geoip/src/Console/Update.php
0 → 100644
vendor/torann/geoip/src/Facades/GeoIP.php
0 → 100644
vendor/torann/geoip/src/GeoIP.php
0 → 100644
vendor/torann/geoip/src/Location.php
0 → 100644
vendor/torann/geoip/src/Services/IPApi.php
0 → 100644
vendor/torann/geoip/src/Services/IPData.php
0 → 100644
vendor/torann/geoip/src/helpers.php
0 → 100644
Please
register
or
sign in
to comment