Ruby on Rails
JavaScript, XHTML, CSS
Java, Distributed Systems
<you_name_it>
Script kiddies and servers running@home (improved)
Submitted by Steffen on Sat, 12/10/2005 - 04:27
Remember my posting about Script kiddies and servers running@home? Unfortunately this little hack can't work with HTTPS. So I figured out an even simpler way for doing the same thing - even when using HTTPS.
<VirtualHost *:80>
ServerName *
DocumentRoot "/var/www/localhost/htdocs"
# rewrite everything not for rusi.is-a-geek.org to /ip-deny.html
RewriteEngine On
RewriteCond %{HTTP_HOST} !=rusi.is-a-geek.org
RewriteRule .* /ip-deny.html [L]
</VirtualHost>
Nice one, heh?
Trackback URL for this post:
http://www.ruzee.com/trackback/23

Little correction ... this does not
Little correction ... this does not work on apache2 AND MAC
RewriteCond %{HTTP_HOST} !=rusi.is-a-geek.org
should be :
RewriteCond %{HTTP_HOST} !rusi.is-a-geek.org
greetings