added: antispam mechanism
each html form has a hidden form_id and counter_id counter_id on the client side is generated through javascript code on the server the form_id and counter_id is stored in the session after sending the html form the server checks the form_id and counter_id git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1116 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008-2014, Tomasz Sowa
|
||||
* Copyright (c) 2008-2018, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -81,6 +81,8 @@ bool Emacs::HasAccess()
|
||||
|
||||
|
||||
|
||||
// !! IMPROVE ME in functions.cpp there is a similar function
|
||||
/*
|
||||
bool Emacs::PostEmacsCheckAbuse(bool adding)
|
||||
{
|
||||
if( !system->rebus.CheckRebus() )
|
||||
@@ -101,6 +103,7 @@ bool Emacs::PostEmacsCheckAbuse(bool adding)
|
||||
|
||||
return true;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
// !! zmienic nazwy
|
||||
@@ -152,7 +155,7 @@ void Emacs::MakePost()
|
||||
if( adding )
|
||||
functions->SetUser(cur->request->item); // set user before checking the rebus
|
||||
|
||||
if( !PostEmacsCheckAbuse(adding) )
|
||||
if( functions->CheckAbuse() )
|
||||
return;
|
||||
|
||||
if( adding )
|
||||
|
Reference in New Issue
Block a user