+7

I want to add a like button in my blog I did coding for it but how can I count likes of every person?

one person likes only one time without any account is this possible? if possible then how please mention all your words here sorry to take your golden time. sharing is caring.

10/19/2018 1:55:32 PM

Ratnapal Shende

4 Answers

New Answer

+6

how can do that 1st mehod Niush sitaula ?

+3

It can be done but not full proof and secure. You can use different techniques like: 1. LocalStorage in Browsers to save like status. (security low) 2.Cookies to Store and verify from server (security medium) 3. Use the users IP address and record and check if already liked (security medium) 4. Use all 1,2 and 3 (security medium still) 5. Use login and verification (security high)

+2

No without any account no person can like, so first made register all the account in the database and assign an unique id to that accounts whenever an account likes it will goes in the like table and counter is increased by 1 and so on

+1

Search Google for JavaScript Local Storage.