Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Forum De Bell Tolls > [Programmazione] Proteggere file con php
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
overflowonline
.grande:maestro.

User info:
Registered: Mar 2003
Posts: 613 (0.08 al dì)
Location: Milano
Corso: Informatica
Anno: 3
Time Online: 3 Days, 13:03:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[Programmazione] Proteggere file con php

Salve sto realizzando un sito con php e mysql ho la necessita di proteggere dei file tramite un'autenticazione con user e password. Per proteggere i file da scaricare sto usando questi accorgimenti:

1)La cartella che contiene i file da scaricare si trova all'esterno della www area. In pratica non è nell documet root di apache con ulteriore protezione tramite file .htaccess di apache.

2)Finestra di dialogo "Save as" - Lo script apre forzatamente la finestra "save as" sena mostrare il vero link ai file

3)Tramite header viene verficato che l'utente abbia realmente inserito user e password.

Avete altri accorgimenti utili da suggerirmi per impedire download non autorizzati??
Cosa molto più importante accorgimenti per impedire che manipolando lo script php sia possibile scaricare file tipo /etc/password o altre robe simpatiche?? grazie ciaooo

ps:sono graditi anche pezzi di codice :-)

24-06-2005 11:55
Click Here to See the Profile for overflowonline Click here to Send overflowonline a Private Message Find more posts by overflowonline Add overflowonline to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 18:35.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.028 seconds (67.57% PHP - 32.43% MySQL) con 24 query.