是否可以使用.htaccess重写规则隐藏部分链接? 我正在研究热链接保护。播放列表与以下链接生成:http://site.com/get.playlist.php?
htaccess:如何隐藏部分链接?
全链路:
http://site.com/get.playlist.php?playlist=http://site.com/video/34141ce7760f58f0c3eb5e0c758afb69/pl/playlist.txt&hash=34141ce7760f58f0c3eb5e0c758afb69
我想显示链接而不&hash=
和http://site.com/get.playlist.php?playlist=
这样的:
http://site.com/video/34141ce7760f58f0c3eb5e0c758afb69/pl/playlist.txt
难道你不只是防止该链接的任何其他防盗链? ! 的RewriteCond%{HTTP_REFERER}^HTTP(S):(WWW \)?// yourdomain.com [NC] 重写规则\(JPG | JPEG | PNG | GIF)$ HTTP://hpmouse.googlepages。 COM/hotlink.gif [NC,R,L] – Popnoodles