Homemade PHP High anti-theft chain (not general high) (thinking)

Source: Internet
Author: User

Principle: Based on IP, resource ID, timestamp, disposable access_token,appkey (exposed to foreground) and appserect (background) to generate parameters, see below:

Browser Request page =/Background reference anti-theft chain code = Generate Access_token and bind access ip=> generate sign=> generate URL

For example: The original picture page is 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

All with MD5 first do encryption, then with appid+ all data json+timestamp encryption, and then use salt encryption 16 times

The time will be ready to send the finished product!!

Homemade PHP High anti-theft chain (not general high) (thinking)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.