I want to host a web server, but there's something in my way: DDoS attacks. I'm very new to hosting a web server, and i just recently found out about them. I might be wrong, but I know that when bots send requests to the server, they do not return an answer to the server, so the server tries to send the file that the bot wants again and again. Is there a way to make a server return the file 5 times if the client "doesent get" the file, and the 6th time the server doesent return the file to that client again?
I apologize if the question or the title is a bit confusing, my english is bad.