Whitelist and blacklist for resource name

Hi,

I think that is good to have possibility to say which resource name can be executed. It's my proposal for this issue, nothing special, mostly copy-paste. If somebody have better idea, go ahead!