The method of download.php hotlink protection for dream-weaving download channel
Dream download channel download.php hotlink protection method? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!
Dream download channel download.php hotlink protection how to do?
Dream DEDECMS download channel download.php hotlink protection
Recommended study: dream weaving cms
1. Download channel hotlink protection must set the link display mode in the software channel settings: enter the download address list page
two。 Modify / plus/download.php
The modification method is as follows:
Find:
$row = $dsql- > GetOne ("Select $vname From". $cu- > ChannelInfos ['addtable']. "where aid='$aid'")
Add on top of his
If (! strstr ($_ SERVER ['HTTP_REFERER'], $arcurl)) {echo "location=\" $arcurl\ ";;}
This will be fine.
Thank you for reading! After reading the above content, do you have a general understanding of the method of download.php hotlink protection in the dream download channel? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.