/ Published in: PHP

Interesante script que te ayudará si no quieres que la gente acceda directamente a tus ficheros para bajárselos. Para ello lo que hará será recoger un parámetro con el fichero que se quiere bajar, añadirle el path donde se encuentra y mediante la cabecera de la respuesta (header) devolver el fichero.
VÃa http://sentidoweb.com/2006/10/02/descargas-seguras-mediante-php.php
VÃa http://sentidoweb.com/2006/10/02/descargas-seguras-mediante-php.php
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$dir="/path/directorio/"; $fichero=$dir.$_REQUEST["fichero"]; } else { echo "Fichero seleccionado"; }
Comments
