Help - Search - Members - Calendar
Full Version: How To Protect A File ?
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
drakkar
If htaccess dont work for free users, how can i protect a file to dowload ?

Thanks.
Tom
You could write some PHP to handle it, or just CHMOD the dir/file?
drakkar
I think cant protect the file with PHP.

Im going to describe my problem:

I have a simple SQLite2 DB file with user data.
If i do CHMOD 600 nobody can download it, but PHP throws errors too.

I dont want use MySQL because:
- I store very low data (only 6 tables).
- Its to easy for me modify this database file.
- Dont want port my PHP code from SQLite to MySQL (this isnt a problem, but time).

Maybe someone can help me more now.

Thanks.
Ed
Yeah, I can see the dilemma.

If you pass me your domain via PM and the directory to protect, I'll sort something out.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.