mc & cgi: limiting users to one visit

andu undo at cloud9.net
Sat Jan 19 03:10:01 EST 2002


Nikorasu Kweto wrote:
> 
> Hi,
> 
> I've set up an online .mt-based survey. Now, I  want to restrict
> (mischievous!) people who may want to revisit the survey in order to vote
> again and again. How could I script things so that .mt checks whether a
> person/computer has already voted?
> 
> I'm guessing the solution has something to do with user url info sent in the
> http headers via a form during a "$REQUEST_METHOD = POST"...

That's right, you can keep track of the global $REMOTE_ADDRESS such as

on startup
put $REMOTE_ADDRESS into userAddress
...

> 
> In the meantime, back to the MC archives...
> 
> Thank you.
> 
> Cheers.
> 
> -------------------------------------------------------
>  Nicolas Cueto                    |
>  - Kinjo Gakuin University     | ".. You may know KungFu,
>  - Nagoya Keizai University   |        but I know sendmail! .."
>      Takakura Jr/Sr High       |
>  - ETJ-Aichi, Sys Admin       |        http://kweto.com
> -------------------------------------------------------
> 
> ---
> Outgoing mail is certified virus free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.314 / Virus Database: 175 - Release Date: 2002/01/11
> 
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard

-- 
__________________________
 Regards, Andu



More information about the metacard mailing list