I'd like to have some buttons on my site for "voting", eg. say there are emoticons on a post saying "angry", "happy", "sad" - users can click one.
Now what I'd like to prevent is users repeatedly clicking a button to increase the no. of votes for that button (or even worse, a script doing it!). I'm a little confused as to how to architect this...? Do I set a client-side cookie when the button is clicked, say, to expire in 5 mins
or whatever; or do I have to set up Apache (SOMEhow!) to prevent repeated votes coming in from the same IP or something like that? (I REALLY don't
like this idea - it's highly likely that there could be 2 people who have
the same IP within a small time frame - it's a small geographical
location I'm targeting the site at, and I plan for the site to be VERY POPULAR!! :) )
Thanks for your help.
I'd like to have some buttons on my site for "voting", eg. say there
are emoticons on a post saying "angry", "happy", "sad" - users can
click one.
Now what I'd like to prevent is users repeatedly clicking a button to increase the no. of votes for that button (or even worse, a script
doing it!).
I'm a little confused as to how to architect this...? Do I
set a client-side cookie when the button is clicked, say, to expire in
5 mins or whatever; or do I have to set up Apache (SOMEhow!) to
prevent repeated votes coming in from the same IP or something like
that? (I REALLY don't like this idea - it's highly likely that there
could be 2 people who have the same IP within a small time frame -
it's a small geographical location I'm targeting the site at, and I
plan for the site to be VERY POPULAR!! :) )
This is not going to be a client-side scripting issue so you'll need to
move the question elsewhere to get the best answers.
Ben Bacarisse <ben.usenet@bsb.me.uk> wrote on 21 Nov 2018 in comp.lang.javascript:
This is not going to be a client-side scripting issue so you'll need to
move the question elsewhere to get the best answers.
While this is a good answer, it is not perfect.
c.l.j. is not a group dedicated to *clientside* Javascript only,
and it is quite possible and even convenient to use Javascript
serverside.
c.l.j. is not a group dedicated to *clientside* Javascript only,
and it is quite possible and even convenient to use Javascript
serverside.
Yup, good point. However the problems that need to be addressed are independent of the server-side language, and I think people on other
groups are more inclined to discuss them. Having sorted out the design
the OP could come back here for language advice.
Or do you plan to help with some server-side Javascript proposals?
Or do you plan to help with some server-side Javascript proposals?
I already did in the 15 to 20 odd years on this NG.
"Evertjan." <exxjxw.hannivoort@inter.nl.net> writes:
<snip>
Or do you plan to help with some server-side Javascript proposals?
I already did in the 15 to 20 odd years on this NG.
I meant help this poster. Is there anything the server-side JavaScript brings to the party that you think
would likely be missed by people
replying to a post in a web authoring group?
Or do you plan to help with some server-side Javascript proposals?
I already did in the 15 to 20 odd years on this NG.
I meant help this poster. Is there anything the server-side JavaScript brings to the party that you think
Well, that is not Javascript specific, we would have to know what serverside OS, scripting engine and database engine the OP has available and what he is most confortable with.
On Friday, 23 November 2018 03:12:11 UTC+5:30, Evertjan. wrote:
Or do you plan to help with some server-side Javascript proposals?
I already did in the 15 to 20 odd years on this NG.
I meant help this poster. Is there anything the server-side
JavaScript brings to the party that you think
Well, that is not Javascript specific, we would have to know what
servers ide
OS, scripting engine and database engine the OP has available and what
he is most confortable with.
Er - I know crap all about serverside JS - I *have installed* node.js on
my local machine, but I have pretty much no idea about it yet, and I
once tried to look up if it's possible to access MySQL databases from
inside it, I don't think I managed to figure out how, or whether it's
even possible... :)
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 991 |
Nodes: | 10 (1 / 9) |
Uptime: | 77:26:57 |
Calls: | 12,949 |
Calls today: | 3 |
Files: | 186,574 |
Messages: | 3,264,596 |