Skip to content

Instantly share code, notes, and snippets.

@alexmoleiro
Created July 13, 2015 18:08
Show Gist options
  • Select an option

  • Save alexmoleiro/818168f602d52160587a to your computer and use it in GitHub Desktop.

Select an option

Save alexmoleiro/818168f602d52160587a to your computer and use it in GitHub Desktop.
Bloquear IP
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