If it is a real DDos attacks and your network connection is flooded with these attempts, not accepting the connections will not help you at all. You will have to ask your ISP to deal with it upstream.
If my street is blocked with hundreds of people who want to visit me, then DHL will not be able to deliver the present I ordered for my wife. It doesn't matter whether I let that crowd in in or leave them standing outside