Self-made PHP anti-leech protection (not generally high) (IDEAS), php anti-leech Protection
Principle: parameters are generated based on IP address, resource ID, timestamp, one-time Access_Token, APPKEY (exposed at the front end), and APPSERECT (background). For details, see the following:
Browser request page => reference anti-leech code in the background => Generate Access_Token and bind the access IP address => Generate sign => Generate the URL
Such as: original picture page for http://xxx.example.cn/pic.php? Picid = 1
Into http://xxx.example.cn/pic.php? Picid = 1 & appkey = xxxxxxxxxxxxx & access_token = xxxxxxxxxxx & timestamp = xxxxxxxxx & client = xxxxxxxxxx & sign = xxxxxxx
Use MD5 for encryption, Appid for encryption, Json for all data, Timestamp for encryption, and salt for encryption for 16 times.
The finished product will be ready at that time !!