PHP 인터페이스 Kraken\Network\Socket\Component\Firewall\SocketFirewallInterface

상속: extends Kraken\Network\NetworkComponentInterface
파일 보기 프로젝트 열기: kraken-php/framework

공개 메소드들

메소드 설명
blockAddress ( string $address ) : Kraken\Network\Socket\Component\Firewall\SocketFirewallInterface Add an address to the blacklist that will not be allowed to connect to your application.
getBlockedAddresses ( ) : string[] Get an array of all the addresses blocked.
isAddressBlocked ( string $address ) : boolean Check if given $address is blocked or not.
unblockAddress ( string $address ) : Kraken\Network\Socket\Component\Firewall\SocketFirewallInterface Unblock an address so they can access your application again.

메소드 상세

blockAddress() 공개 메소드

Add an address to the blacklist that will not be allowed to connect to your application.
public blockAddress ( string $address ) : Kraken\Network\Socket\Component\Firewall\SocketFirewallInterface
$address string
리턴 Kraken\Network\Socket\Component\Firewall\SocketFirewallInterface

getBlockedAddresses() 공개 메소드

Get an array of all the addresses blocked.
public getBlockedAddresses ( ) : string[]
리턴 string[]

isAddressBlocked() 공개 메소드

Check if given $address is blocked or not.
public isAddressBlocked ( string $address ) : boolean
$address string
리턴 boolean

unblockAddress() 공개 메소드

Unblock an address so they can access your application again.
public unblockAddress ( string $address ) : Kraken\Network\Socket\Component\Firewall\SocketFirewallInterface
$address string
리턴 Kraken\Network\Socket\Component\Firewall\SocketFirewallInterface