There is no specific marine legislation with regard to prohibition signs, however the ISPS code requires certain areas to have restricted access and be identified as such.
Prohibition signs are used extensively on board ship to inform crew, passengers and visitors of the requirements of onboard policy. They also highlight areas of concern where experience or risk assessment has determined the need for a prohibition notice.