On 1 July 2004, the International Ship and Port Facility Security (ISPS) Code became applicable to all ships over 500 gross registered tonnes and to all the ports .