Index du Forum » » Sécurité

Auteur

[Résolu] - url_protect ??
Anonyme
19853  

  Posté : 04-01-2005 17:20

Bonjour,
Je télécharge le script url_protect.php, il sontinet ceci :
<?php
/************************************************************************/
/* NPDS V : Net Portal Dynamic System . */
/* =========================== */
/* */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/

// Add some bad URI token separate by , (coma)
$bad_uri_content="rush,highlight,perl,chr(,pillar,visualcoder,sess_";


/************************************************************************/
// Dont modified these lines if you dont know exactly what you have to do
/************************************************************************/
global $REQUEST_URI;
$tmp_bad_uri_content=explode(",",$bad_uri_content);
while(list(,$uri_content)=each($tmp_bad_uri_content)) {
if (strpos($REQUEST_URI,$uri_content)) {
die();
}
}
unset ($tmp_bad_uri_content);
unset ($uri_content);
?>
Hum, et je fais quoi ??
Merci et bizz

Message édité par : developpeur




Cet article provient de NPDS

http://www.npds.org/viewtopic.php?topic=14972&forum=12