Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: what does your blackout page look like?
8 points by adrianwaj on Jan 18, 2012 | hide | past | favorite | 2 comments
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");




Rewrite 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





Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: