Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーがファイルをディレクトリにアップロードし、ユーザー/クライアントからのこれらのファイルのダウンロードを禁止するための最善かつ最も安全な方法は何ですか? ファイルのダウンロードは、ftp クライアントによってのみ可能であるべきです。
または、アップロードされたファイルをアップロード ディレクトリから別の .htaccess で保護されたフォルダーに php-script で移動する必要がありますか?
<Limit>ディレクティブを使用して、次のアプローチを取ることができます。
<Limit>
たとえば、これを in に追加しuploads/.htaccess fileます。
uploads/.htaccess file
<Limit POST GET DELETE> deny from all </Limit>