tcpwrap_check(PECL tcpwrap >= 0.1.0) tcpwrap_check — Performs a tcpwrap check Описание
bool tcpwrap_check
( string $daemon
, string $address
[, string $user
[, bool $nodns = false
]] )
This function consults the /etc/hosts.allow and /etc/hosts.deny files to check if access to service daemon should be granted or denied for a client. Список параметров
Возвращаемые значенияThis function returns TRUE if access should be granted, FALSE otherwise. ПримерыПример #1 Deny all connections from localhost If your /etc/hosts.deny file contains: php: 127.0.0.1 And your code looks like:
<?phpСмотрите такжеFor more details please consult hosts_access(3) man page. |
||