Go dark to fight SOPA with a simple .htaccess rewriterule
Sunday January 15 2012
Simple piece of code to put in your .htaccess if you want to join in the protest against SOPA:
# RewriteEngine on (enable if you don't have it yet)
RewriteCond %{TIME_YEAR}%{TIME_MON}%{TIME_DAY} ^20120118$
RewriteCond %{TIME_HOUR} >7
RewriteCond %{TIME_HOUR} <20
RewriteRule ^(.*)$ http://reddit.com/r/sopa [L]
This will redirect any request, to your protest site of choice on Jan 18th, between 08:00 and 20:00 (local webserver time). Assuming Apache of course!
Comments