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. If somebody have better idea, go ahead!