there are a few things that can help u when handling a ddos, but u can never really block it 100%
to do this u have to setup yer router with some specific configurations andi warn u it's gonna give u some trouble
.
since most ddos attacks have spoofed ips as origin u can block a bit of it by setting up some restrictions on yer router.
step 1
setup the router to only accept incoming connections from non internal ip ranges ( this will prevent attacks from spoofed ips that send internal ips as origin like 192.168.0.* ; 172.16.*.*) etc.
step 2
belive it or not some ddos codes that are spread around are so stupid that the ip spoofing sometimes is out of ipv4 range ( 0.0.0.0 - 255.255.255.255 ), so block anything that isnt in that range.
these steps help a bit in reducing the effects of a ddos, but face it
if u have a dialup and get attacked by 99999999999 edus even god cant help your connection