How to Block IP Addresses Using PHP

$denyIp = array("", "", "");
if (in_array ($_SERVER['REMOTE_ADDR'], $denyIp)) {
} ?>

How to make your website load faster

Top 9 Steps:
1. Optimize your images for web — use 65% image quality of JPEG instead of 100%.
2. Eliminate of minimize the use of frames.
3. Load any JavaScript in the footer instead of the header.
4. Use the correct doc format for the type of page you are using (eg. Strict XHTML).
5. Keep external images and items minimized.
6. Use clean and simple style sheets – or use just one to load and call in any others instead of multiple style sheets.
7. Modify your .htaccess file at root for load expiry modules.
8. Minimize GET requests.
9. Remove white space in your source code with HTML Optimizer.