Jump to content

How do I restrict people from spamming a like button?


Shockdot

Recommended Posts

I'm creating a website for a client. The website is basically a huge phone book on local business'...

 

I've created a like form system for various categories, such as Customer Service, Cleanliness, quality, and speed of service.

 

The problem I'm having is that users are able to click the like button without restrictions.... Which is bad haha...

 

I'm looking for a way that if a user likes one of the categories, it is logged and he can no longer like that category.

 

Any ideas?

Link to comment
Share on other sites

Could have condition where user's must also be logged in to "like" as user could simply delete the cookie and abuse the system.  Check against IP/username.

Yah, that's what I wanted. The issue was storing the liked status properly, but I believe that I've resolved the issue.... Currently coding it now, I'll let you guys know haha. Thanks!

Link to comment
Share on other sites

As mrMarcus suggests, their username would probably be the best.  If you want a way to do it where the user doesn't have to be logged in, I wouldn't uniquely identify them with just their IP address, though.  NAT could mess this up.

Link to comment
Share on other sites

As mrMarcus suggests, their username would probably be the best.  If you want a way to do it where the user doesn't have to be logged in, I wouldn't uniquely identify them with just their IP address, though.  NAT could mess this up.

My client wants the user to be logged in or they can't like it.

 

I got it working :).

 

Simply made another table that logged a username, the business they are liking, and has the 4 categories on it.

When the user clicks the like button it adds the info to the table, if its already added it updates the appropriate category field, and if that field is already liked then it does not add an additional like to the business.

 

Thanks guys!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.