How to disable download for a limited time

How can I get the client to download more after you have downloaded something over the course of time? Based on IP address.

+3
source share
3 answers

Eliminating your disconnection at the user's IP address is inefficient. In addition to what Kel said, the client can also have a dynamic IP address or use Tor.

Indeed, the only way is to make the user somehow identify themselves. There are many options: Facebook, OpenID, Twitter, etc. You could create a user account system for your site, but that would be much more inconvenient for the user; using infrastructure that is already in place will be better.

, , . Cron , .

, , . , ; , .

+3

IP- $_SERVER ['REMOTE_ADDR'] $_SERVER ['HTTP_X_FORWARDED_FOR'] - (, ). , ( IP) - ( ) > .

BTW, IP-, IP- . , , , NAT.

+2

I think there is no complete proof method, and for any sentence there is an argument counter.

But then again, websites still let you download and live.

You can combine various user authentication methods:

  • Regular cookie

  • Flash cookie

  • IP address

All this can be overcome, but not everyone knows about flash files, and some people still change their IP address by switching the modem on / off. Never underestimate the laziness / ignorance of people :)

0
source

Source: https://habr.com/ru/post/1786305/


All Articles