配置防盗链
通过限制referer来实现防盗链的功能
配置文件增加如下内容
vim /usr/local/apache2.4/conf/extra/httpd-vhosts.conf
重新加载
测试
curl -e "http://www.baidu.com/123.php" -xlocalhost:80 www.111.com/index.html -I