Firewall – Anti-DDoS Protection for D-LINK DIR-300A

I want to install some anti-DDOS protection on my router (DIR-300A) but I do not know how. I thought block all traffic ips from countries other than my country. But it's a little harder on my router and I want to know that it's another solution? Can someone help me?