Posted by Ivαn Sαnchez Ortega on 12/23/05 00:42
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Yannick Benoit wrote:
> anyone can tell me a way to protect files from being downloaded from other
> sites using php ?
Don't put the files in the document root of your webserver, use readfile()
or a silimar function to provide the file, and check the HTTP referrer.
- --
- ----------------------------------
IvΓ‘n SΓ‘nchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
Cuando la sociedad estΓ© preparada intentarΓ© ser diferente.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDqyvv3jcQ2mg3Pc8RAqzQAJ0dRn3xQIE96Y5846olJpjF9vonFwCfQ0sJ
iDfrPwGs+//E+EOwGNt6zI8=
=Wo2K
-----END PGP SIGNATURE-----
Navigation:
[Reply to this message]
|