0
我的htaccess有這樣的代碼htacess盜鏈問題
#
# Apache/PHP settings:
#
Options -Indexes
Options +FollowSymLinks
**# NOT WORKING #
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?yourwebdomain.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?friend1domain.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?friend2domain.com(/)?.*$ [NC]
# NOT WORKING #**
# Set the default handler.
DirectoryIndex index.php
# PHP5, Apache 1 and 2
<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value memory_limit 128M
php_value output_buffering 4096
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
# Modify the RewriteBase if you are using zina in a subdirectory and
# the rewrite rules are not working properly.
#RewriteBase /zina
# Rewrite current-style URLs of the form 'index.php?p=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?p=$1 [L,QSA]
</IfModule>
如何防止來自其他網站盜鏈我的MP3和JPG文件?
我對下載MP3 URL結束,因爲http://www.domain.com/music/cat_one/band_name/file_mp3_name.mp3?l=12