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?

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!

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.

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.