Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Feb 13th, 2011  |  syntax: PHP  |  size: 0.14 KB  |  views: 75  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
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