securing the /home directory
chmod 701 /home/* chmod 705 /home/*/public_html chmod 604 /home/*/public_html/*.*
DZone Snippets > lordrich > apache
12387 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
chmod 701 /home/* chmod 705 /home/*/public_html chmod 604 /home/*/public_html/*.*
RewriteEngine on RewriteCond %{REMOTE_ADDR} !^aaa.bbb.ccc.ddd$ RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx RewriteCond %{QUERY_STRING} !(^|&)coral-no-serve$ RewriteCond %{HTTP_REFERER} ^http://(www\.)?digg\.com [OR] RewriteCond %{HTTP_REFERER} ^http://(www\.)?slashdot\.org [OR] RewriteCond %{HTTP_REFERER} ^http://(www\.)?slashdot\.com [OR] RewriteCond %{HTTP_REFERER} ^http://(www\.)?fark\.com [OR] RewriteCond %{HTTP_REFERER} ^http://(www\.)?somethingawful\.com [OR] RewriteCond %{HTTP_REFERER} ^http://(www\.)?kuro5hin\.org [OR] RewriteCond %{HTTP_REFERER} ^http://(www\.)?engadget\.com [OR] RewriteCond %{HTTP_REFERER} ^http://(www\.)?boingboing\.net [OR] RewriteCond %{HTTP_REFERER} ^http://(www\.)?del\.icio\.us RewriteRule ^(.*)$ http://www.yourdomain.com.nyud.net:8080$1 [R,L]