Re: [Wt-interest] Detect "suspictious" activity to verify the user is a human

2016-10-15 Thread Aarón Bueno Villares
Exactly, that was what I was looking for. Thanks.

2016-10-15 16:59 GMT+02:00 Marco Kinski :

> Hi Aaron,
>
> 2016-10-14 21:00 GMT+02:00 Aarón Bueno Villares :
> > [snip]
> > Is there a way to "count" the number of requests arriving to a session
> > process (dedicated process mode in wthttpd)?
>
> from reading the docs, overriding WApplication::notify is what you are
> looking for.
>
> https://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_
> 1WApplication.html#a4a6f167bea94aefa8ba24f914c2fbee5
>
> Regards, marco
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest


Re: [Wt-interest] Detect "suspictious" activity to verify the user is a human

2016-10-15 Thread Marco Kinski
Hi Aaron,

2016-10-14 21:00 GMT+02:00 Aarón Bueno Villares :
> [snip]
> Is there a way to "count" the number of requests arriving to a session
> process (dedicated process mode in wthttpd)?

from reading the docs, overriding WApplication::notify is what you are
looking for.

https://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WApplication.html#a4a6f167bea94aefa8ba24f914c2fbee5

Regards, marco

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest


[Wt-interest] Detect "suspictious" activity to verify the user is a human

2016-10-14 Thread Aarón Bueno Villares
I have developed a little class to manage the google recatpcha
verification. In some places, to solve a recaptcha challenge is mandatory
(like send a contact form), but in order places, I want to show that
recaptcha only when necessary.

So, my idea is calculate the frecuency of "request" made on a session to
determine if the user is human or not. It's worthy to consider the
possibility a human being solves a recaptcha, and then, insert javascript
code to do automatic tasks (without interfering with allowed web spiders of
course, but that it's a problem of mine).

So, depending on the situation, I want to show a popup window to solve a
recaptcha if the actitivy is suspictious.

Is there a way to "count" the number of requests arriving to a session
process (dedicated process mode in wthttpd)?

For example, a virtual function I can override in a derived class to
measure frequency? Or any other way?

Best regards,
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest