Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.9k views
in Technique[技术] by (71.8m points)

如何做下载限制和检测?

需要做一个下载功能
但是每次用户点击都要统计一下是谁下载的
然后要限制下载来源
只有点击以后可以下载 直接通过url不能下载

类似于csdn里的积分下载功能把

这个该怎么实现?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

1.用户下载的时候记录log,包含uid,下载时间,下载的资源id等
2.点击下载的时候根据用户的条件进行限制,达到就下载,没有达到就不下载


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...