Created
July 13, 2015 18:08
-
-
Save alexmoleiro/818168f602d52160587a to your computer and use it in GitHub Desktop.
Bloquear IP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private function bloquerEntradaTraficoPorIp($ip){ | |
| $comando = "/sbin/iptables -I INPUT -s " . $ip . " -j DROP"; //178.33.133.172 | |
| shell_exec($comando); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment