How can I block access through ports ??

I wan't to block all access to the internet via ports 10000-65535 between 8am and 11pm. How can i do that ?? (when i choose deny in access restrictions/internet access i can't choose the ports to block)