hello
i had MP4 files in my web server.
like: www.domain.com/folder/film.mp4
when visitor paste the link in browser. it will play the video …
so how i can disable that … i want just force download file because i think streaming videos will make site slow
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I suggest to turn (compress) them in WinRar for example film.zip or film.rar when you upload to your web, is a simple way to do it
Hi @mcgrykk64
You can create a .htaccess file and put it in /folder/, then edit the file to look like this:
<Location "/folder/">
<Files *.mp4>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
</Location>
But it doesn’t make any difference, since “viewing” a MP4 file and downloading it is usually handled the same way unless you have a streaming module installed in Apache, which it doesn’t come with by default.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.