Fencing or similar safety measures shall be provided around excavations, derelict buildings or facilities, damaged structures, construction sites and other hazardous sites, immediately upon the determination by the Code Enforcement Officer that such action is necessary in the interest of public safety.