In case of a hack, you should isolate the infected website, restore it from a clean backup, update all software, and strengthen security measures. Seeking professional help is recommended in such situations.