![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Serving and Management how to web server support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2008
Posts: 3
OS: home xp
|
how do i block a file download with .htaccess?
hi, i would like to play a song on my index page, but not have the url let the link be "downloadable"
right now i have set the permissions on it to '666' but then i cannot play the file. can i use .htaccess to allow me to play the mp3, without it being able to be downloaded? |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
TSF Enthusiast
|
Re: how do i block a file download with .htaccess?
To the best of my knowledge, if it can be played or embedded, it can be downloaded.
__________________
Antec Neo Power 500W, ABIT IP35-E, Intel E2180@2.66Ghz, Corsair XMS2 2x1GB DDR2-800, PNY 8800GT, 320GB Seagate * lazy college student alert *- If I've inadvertently ignored a thread, please Let me know about it Have I helped you solve your problem? Donate to Techsupportforums Klart Skepp!
|
|
|
|
|
|
#3 (permalink) |
|
Manager, Alternative Comp
|
Re: how do i block a file download with .htaccess?
I think the closest you could do is use a Flash based player and have it set to now allow the files to be saved. Beyond that, I'm not aware of anything that .htaccess can do to limit downloading. When a file is "streamed" it's essentially downloaded. The server doesn't know the difference between streaming and right click->save as.
__________________
|
|
|
|
|
|
#5 (permalink) |
|
Manager, Alternative Comp
|
Re: how do i block a file download with .htaccess?
You'll probably stop 95% of the people, but it's that other 5% that know what they're doing and will get the file no matter what. The only way to truely stop someone is to not provide the files for public access. Even DRM will only work for so long.
__________________
|
|
|
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Apr 2008
Posts: 25
OS: XP Service pack 2
|
Re: how do i block a file download with .htaccess?
You can only block the IP address from a certain range of country where they access your site. You can add this on your .htaccess file
<Limit GET HEAD POST> order allow,deny deny from 192.168.1.1 allow from all </LIMIT A usefull code Generator is http://thinkhost.com/services/generators/htblock.shtml |
|
|
|
![]() |
| Thread Tools | |
|
|