News for hackers. Stuff that matters.
Re:Bulletproof your blog – survive the Hacker News effect by ck2 on Sunday December 25, 2011 @06:54PM (#3391870)
Save dynamic page as html from browser.

Upload to server as html.

Add.htaccess rule to redirect old dynamic page to static page. (when traffic dies, remove rule)

Or if you are running WordPress, just install wp-super-cache and when a traffic spike happens, click the "lockdown" button.

Re:Bulletproof your blog – survive the Hacker News effect by sirn on Sunday December 25, 2011 @07:06PM (#3391881)
Easier: just put this into your .htaccess on traffic spike.

    Header append X-Coral-Control "redirect-home"
    RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
    RewriteCond %{QUERY_STRING} !(^|&)coral-no-serve$
    RewriteRule ^(.*)$ http://your.domain.nyud.net/$1 [R,L]
Or even better, just redirect all traffic with news.ycombinator.com or reedit.com referer (before RewriteRule):

    RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?ycombinator\.com [OR]
    RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?reddit\.com [OR]
You don't even have to manually disable caching after traffic dies down this way.