Hi Banfa,
Indeed, DoS attack prevention would be much efficient if handled by firewalls and routers. However this does not devoid my attempt to do it server-side. One reason is : Are we sure if we deploy a custom server application and host it at some hosting provider, that this latter has mechanism in place to prevent DoS ?
I do'nt think so.
In term of solution, no it should not be so hard. To discern the legitemate one...
User Profile
Collapse
-
Reason
The memory leak is because of the conversion of a non const char* to a const char*
in the following instruction :
vec.push_back(s tr[i]);
Either use the same type, or use the following to cast between the two types :
const_cast
=>
vec.push_back( const_cast( str[i] ) );
Hope this helps.Leave a comment:
-
Dos Attack Prevention Code
Hi all, I am looking for a Dos Attack Prevention Code in C++ to inspire from,
any suggestions ?
Thank you in advance.
No activity results to display
Show More
Leave a comment: