The single line solution I gave him, is insuperable, it stand up against DoS attacks. Other way it would be floodable from foreign sources.