时间:2019-05-23 浏览量:
Apache 隐藏入口文件以及防盗链.htaccess 文件代码如下:
RewriteEngine on # 隐藏入口文件 RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [L] # 防止资源盗链 RewriteCond %{HTTP_REFERER} !^$ [NC] RewriteCond %{HTTP_REFERER} !lqelsmm.com [NC] RewriteCond %{HTTP_REFERER} !xmygsj.com [NC] RewriteRule .*.(gif|jpg|png)$ //lqelsmm.com/public/static/common/images/not_adv.jpg [R,NC,L]
RELATED RECOMMEND