Safety guards with magnetic base