All pastes #176659 Raw Edit

Anonyme

public text v1 · immutable
#176659 ·published 2006-09-19 21:04 UTC
rendered paste body
<?php
if ($_POST['ip']){	        
$fp = fopen('.htaccess','a+');
    fputs($fp, 'deny from '.$_POST['ip'].'\n');  
     fclose($fp);
     print '<br />IP ajoutée !';
}
?>
<p>
<form id="form1" name="form1" method="post" action="">
  <label>
  IP &agrave; bannir:<br />
  <input name="ip" type="text" id="ip" />
  </label>
  <label>
  <input type="submit" name="Submit" value="Envoyer" />
  </label>
</form></p>


------ .htaccess -------
order allow,deny
allow from all