3 ms·
Ask HN: what does your blackout page look like?
here's mine: http://twitya.com/503.php
The .htaccess is as follows:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^12\.345\.678\.901
RewriteCond %{REQUEST_URI} !^/503.php [NC]
RewriteRule .* /503.php [L]
[the ip address is my own so I can access the site]
top of 503.php:
header("HTTP/1.1 503 Service Temporarily Unavailable");
header("Status: 503 Service Temporarily Unavailable");
header("Retry-After: 86400");
- jim_lawless 15y agoRewrite rule: Options +FollowSymlinks RewriteEngine on RewriteRule ^(.*)$ sopa.php [NC] The top of sopa.php: <?php header("HTTP/1.0 503 Service Not Available"); ?> ...followed by a body element that explains why the site is down and provides some links to sites with more info. ( One of which is BoingBoing, which has gone dark. ) I have some JavaScript in a Blogger site and an older web site that redirects to the site with the above mechanism in place. http://www.mailsend-online.com http://www.mailsend-online.com
- dazbradbury 15y agohttp://www.openrent.co.uk http://www.openrent.co.uk But the code is taken from: https://github.com/zachstronaut/stop-sopa https://github.com/zachstronaut/stop-sopa Courtesy of: http://blog.appharbor.com/2012/1/18/join-the-sopa-protest-blackout http://blog.appharbor.com/2012/1/18/join-the-sopa-protest-bl...