Reputation: 1605
I am using Nodejs. Right Now we counting views on the basis of I.P. If requests comes from different IP then we increment count by 1 . For getting the IP we are using req.connection.remoteAddress
.
Right now we are in development mode. Is this a good way or we need to something different ?
Upvotes: 0
Views: 1853
Reputation: 1306
Such a system is too easy to bypass by proxies.
so I recommend to
combine it with fingerprintjs
enable CORS to protect from cheats by services where users payed per action (in your case to watch the videos).
store user identity with something like evercookie
Upvotes: 1