You'll need to create 2 custom categories.
The first will be the allow category which specifies the directories to allow (via Regex) and the second will be the block category which just lists the domain in general.
Make sure that the order in the custom categories menu is such that the allow category is above / first in the list.
This will ensure that the allow takes precedence.