chore: stashing old stuff
This commit is contained in:
parent
6a70fd2f26
commit
932e2ca800
2 changed files with 85 additions and 31 deletions
|
@ -9,7 +9,7 @@
|
|||
* Redistribution of these files must retain the above copyright notice.
|
||||
*
|
||||
* @author Josh Sherman <hello@joshtronic.com>
|
||||
* @copyright Copyright 2012, 2013, 2014, 2015, 2016, 2017, 2018 Josh Sherman
|
||||
* @copyright Copyright 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Josh Sherman
|
||||
* @license http://www.opensource.org/licenses/mit-license.html
|
||||
* @link https://github.com/joshtronic/php-projecthoneypot
|
||||
* @link http://www.projecthoneypot.org/httpbl_configure.php
|
||||
|
@ -55,6 +55,8 @@ class ProjectHoneyPot
|
|||
*/
|
||||
public function query($ip_address)
|
||||
{
|
||||
var_Dump('ip addy', $ip_address, filter_var($ip_address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE));
|
||||
|
||||
// Validates the IP format
|
||||
if (filter_var($ip_address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE)) {
|
||||
// Flips the script, err, IP address
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue