title: What could hackers do to a website and how do you protect my website  from these attacks?
body: <p></p>
  
  <p>Although my site is still far from done, I've started thinking about web security.  This site will be extremely public and contain important information people assume is true, that I wouldn't want hijacked. It'd be a disaster is this site got hacked, so I started thinking of some ways to protect it, or fight back.</p>
  
  <p>Everything has been made with dynamic html through PHP, except for error messages, which use javascript popup alerts triggered by PHP cookies. There are textbox forms and dropdown boxes, all encased with htmlentities to prevent code from being run.</p>
  
  <p>So I started thinking, "what are the ways that my site's security could be compromised, what weapons of choice do hackers use?" </p>
  
  <ul>
  <li><p>I know about changing the source code of the site with tools like firebug or chrome for themselves, but that shouldn't matter because I use PHP, and I'm more worried about what EVERYONE sees.</p></li>
  <li><p>They can use javascript injections</p></li>
  <li><p>They could submit code to execute to the forms</p></li>
  <li><p>They could DDoS the site, which would crash it and to which I don't know of any defense. But I really don't think I'd be dealing with a entire faceless group of internet megaterrorists.</p></li>
  <li><p>They could change the html of email submission forms to get my password sent to me (them).</p></li>
  <li><p>They could bruteforce my password for the server/ftp, but I use strong passwords by using all types of characters on a US keyboard.</p></li>
  </ul>
  
  <p>So what are the ways can I protect my site from being hacked? What are all the ways (or general tactics and categories) that hackers choose to destroy or exploit sites? </p>
  
  <p>Are any of the things from the list of defense traps a good or possible idea?? </p>