Demo Defense
Demo Defense
At the beginning,server response 200,that mean server is ok,users get what they want,but
after that,we get the response :
As we can see,the status response is 500,it mean server is error,it can not serve other user
(actually,this server is weak,so we can DOS easy,but even server can load more
request,when mutil computer run this program,server can not response anymore).
It is very dangerous when we have more computer and run this program.
So,let install Nginx and litmit the request per second to 100,if the request is valid,it will
connect to port 1200,which is the right port that user needed.
After connecting to server and install Nginx,we will config Nginx like this:
Now,we will try run the program again,we will get:
There are some response 200 and almost 503(server are not available),it mean that request
will not be served by server running at port 1200,and legal user can access successfully.