Go Back   Internet Business Forums > Webmasters

Reply
 
Thread Tools Display Modes
Old 05-10-2006, 10:27 AM   #1 (permalink)
Business Guru
 
Brian Turner's Avatar
 
Join Date: Dec 2003
Location: Near Inverness, Highlands, Scotland
Posts: 7,719
Default Prevent site downtime from traffic surges

Shoemoney posts a nice little tutorial on how to avoid your site going down if it receives a sudden surge of traffic from sites such as Slashdot, Digg, etc.

Add this to your .htaccess file in your root folder:

Quote:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
RewriteCond %{QUERY_STRING} !(^|&)coral-no-serve$
RewriteCond %{HTTP_REFERER} ^http://(www.)?digg.com [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?slashdot.org [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?slashdot.com [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?fark.com [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?somethingawful.com [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?engadget.com [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?boingboing.net [OR]
RewriteCond %{HTTP_REFERER} ^http://(www.)?del.icio.us
RewriteRule ^(.*)$ http://www.platinax.co.uk.nyud.net:8080/$1 [R,L]
Of course, don't forget to remove "platinax.co.uk" and replace your domain in that line.

I've tested it out on one of my sites I was trying to set up for a Digg - although it's not being taken up by Digg users, at least it is redirecting traffic to the mirror site, which then links direct to the original site.

This should at least help prevent any traffic surge from the social sites from overloading your hosting account.

Those on dedicated servers should be fairly fine - when I hosted Threadwatch a while back the Platinax server took 3 Slashdots over 10 days in its stride - but for those on shared hosting accounts, a sudden traffic surge could get you suspended.
__________________
SEO specialist
Brian Turner is offline   Reply With Quote
Old 05-10-2006, 11:47 PM   #2 (permalink)
Senior Member
 
Join Date: Mar 2005
Location: UK
Posts: 122
Default Re: Prevent site downtime from traffic surges

You could probably add theregister.co.uk to that list of referrers. I believe they're capable of slashdotting too.
__________________
Will
XML Feed Generator - Free Windows Tool Creates XML RSS Feeds from Your Website.
Liverpool Web Design | Epson Compatible Ink Cartridges
WSC-Will is offline   Reply With Quote
Old 06-10-2006, 01:44 PM   #3 (permalink)
Business Guru
 
Brian Turner's Avatar
 
Join Date: Dec 2003
Location: Near Inverness, Highlands, Scotland
Posts: 7,719
Default Re: Prevent site downtime from traffic surges

Indeed, but the chances of the larger news organisations online picking up a link. I dunno, it happens - I know James at UH Hosting got linked to from the Register - but the sites listed are traditionally built on refering traffic to other sites.
__________________
SEO specialist
Brian Turner is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 12:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.