3 ms·
Not that difficult! Simply sign your session ids with an HMAC, to verify the id without any I/O! And require something expensive to create a session (such as
by EGreg 11y ago
Not that difficult!
Simply sign your session ids with an HMAC, to verify the id without any I/O! And require something expensive to create a session (such as a hash-based challenge request). Sessions are usually not needed for static sites, so by the time the person searches, their browser will have earned one session. A spammer on the other hand wouldn't have the computational power to create the various sessions. Also, if a spammer's IP is detected, the computational complexity can be increased for that IP.