While there are ways for websites to protect themselves from denial of service attacks , Prince said the defenses were expensive , whereas mounting an attack was a relatively simple feat for hackers .