Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 13th, 2011  |  syntax: PHP  |  size: 0.14 KB  |  views: 74  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $malicious = false;
  2. if ($malicious) {
  3.         $ipAddress = $_SERVER['REMOTE_ADDR'];
  4.         echo exec("iptables -I INPUT -s $ipAddress -j DROP");    
  5. }
clone this paste RAW Paste Data