The present invention provides for protecting against denial of service
attacks. A request is sent by a client, the request comprises client
indicia. The request is received at a server. A request count is
incremented by the server. A sequence number is assigned as a function of
the client indicia. A problem is selected by the server. The problem is
sent by the server to the client. A solution to the problem is sent to
the server. It is determined if the solution by client is correct. If the
solution is correct, a session is performed. If the solution is not
correct, the request is discarded. This can substantially decrease the
amount of attacks performed by a rogue client, as the session set-up time
can be substantial.