A
A
Andrey Astafiev2015-05-21 10:01:10
JavaScript
Andrey Astafiev, 2015-05-21 10:01:10

How can I organize likes without registration?

On the site, you can like the post you like without registering.
The question is how to organize and where to record data about who the user liked and who did not.
I thought about cookies, but they can be cleaned and re-liked again, and so on to no end, in general, how to avoid this?
I found a good example likeholding.ru
How is it implemented here, can someone tell me in which direction to move?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Shinkar, 2015-05-21
@DeadCowsDontMoo

Only DB - only hardcore :D

A
Alexander, 2015-05-21
@NeiroNx

I think cookies will be quite enough if these are simple likes - not for any pranks.
In general, if likes do not bring any material benefit, then you can not bother.
And you can fake it with registration.
You can also link the material id (or its url) to a social network and likes will go through it. I did this on a site.

E
evnuh, 2015-05-21
@evnuh

Use social network OAuth, as done here: likedislike.ru/t
Done in one evening, store the user_id from the social in the database. network - the entity_id he voted for.

A
Andrey Astafiev, 2015-05-21
@Astafiev_Andrey

I found a great example on likeholding.ru. How did they do? I checked in cookie/session/local storage they don't write anything?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question