|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
.htaccess
SetEnvIfNoCase Referer "^http://www.cherez.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.cherez.com$" locally_linked=1 SetEnvIfNoCase Referer "^http://cherez.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://cherez.com$" locally_linked=1 SetEnvIfNoCase Referer "^$" locally_linked=1 <FilesMatch ".(mp3)$"> Order Allow,Deny Allow from env=locally_linked </FilesMatch> This is the htaccess file that I found. It is supposed to stop all other sites from downloading my mp3 files. Well it does but when some people try to download them mp3s are opened in the browser. Save as window never shows up. Well we had a debate about it with my webmaster friend and he thinks it is because of the htaccess file. Is it? |
|
#2
|
|||
|
|||
|
RE: .htaccess
what happens when you disable te htaccess file?
|
|
#3
|
|||
|
|||
|
RE: .htaccess
everybody can download the file
|
|
#4
|
|||
|
|||
|
RE: .htaccess
maybe because of the files match apache is no longer sending the correct header w/ the files,
try this Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www.)?cherez.com [NC]
RewriteRule .mp3 ugly_you_are_denied_access_image.jpg [L]
that will rewrite any browser which doesnt send a referer header which contains http://cherez.com or http://www.cherez.com to : ugly_you_are_denied_access_image.jpg you can put a nice repulsive image there if you like hehe |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > .htaccess |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|