IoBridge: check restricted for file name instead of method name