For example, my site is xxx.com
Resource Station is abc.com
My resource station is only allowed to show on xxx.com or www.xxx.com.
White list restrictions are said to be used
How can i solve this problem with PHP?
Thank you guys!!
Add a little bit. I'm using extraction code to extract resources from the station.
http://xxx.com/link.php/code/
Reply content:
For example, my site is xxx.com
Resource Station is abc.com
My resource station is only allowed to show on xxx.com or www.xxx.com.
White list restrictions are said to be used
How can i solve this problem with PHP?
Thank you guys!!
Add a little bit. I'm using extraction code to extract resources from the station.
http://xxx.com/link.php/code/
I can offer a suggestion. Use Cookies and page refer
Apache. htaccess files can be done, specifically how to do, hehe, Baidu's
The Front Plus
$from = Parse_url ($_server[' http_referer ')), if ($from [' Host ']!= ' xxx.com ' && $from [' Host ']!= ' www.xxx.com ') { Die (' You're in hotlinking '); }
Apache Down with rewrite
If I am to do anti-theft chain words: First from the server to better, here is an article is absolutely suitable for beginners:
[Nginx Configuration image Anti-theft chain, simple and efficient, fast, PHP program without change can realize the function of anti-theft chain, why not? ]
Http://www.qixing318.com/article/use-nginx-to-do-a-simple-anti-daolian-website.html
If you have any questions, please leave me a message on SF ^~^