This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Helper_Validation_Ip

Direct known subclasses

ValidationIpHelper

Package: Helpers\Validation
Copyright: Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Andrew Embler andrew@concrete5.org
Located at core/helpers/validation/ip.php

Methods summary

public boolean
# check( type $ip = false, $extraParamString = false, $extraParamValues = array() )

Checks if an IP has been banned

protected
# checkForManualPermBan( $ip = false )
public boolean
# isPrivateIP( string $ip )

Checks if an IPv4 address belongs to a private network.

public string
# getRequestIP( )

Returns the client IP address (or an empty string if it can't be found).

public
public
# logSignupRequest( $ignoreConfig = false )
public
# signupRequestThreshholdReached( $ignoreConfig = false )
public
# createIPBan( $ip = false, $ignoreConfig = false )