TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tips for file host security?

1 pointsby zombioabout 12 years ago
I'm making a unique file host, and I want to allow ALL types of files. How would you do security for something like this? For example: What's the best way to prevent someone from uploading a malicious PHP file and executing it?

1 comment

t0about 12 years ago
Put the data inside each file in a database. You can then create a temporary file for download.