The Key To Being Anti-Social - How To Deal With Diggs, Slashdot, Delicious, ect

44 responses..

We had a few off the wall questions during last weeks radio show about how I deal with digg and the other social networks. Well I have a dedicated server that I use pretty much just for my blog so its not that hard however some people made the point that most bloggers that do shared hosting or whatever just cant handle the traffic that a DIGG or something brings and that my friends is just not planning for success!

If your server is having problems dealing with diggs put this code in your .htaccess and it will redirect them to a cached mirror of your page.

!start code

RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^192.168.1.2$
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.shoemoney.com.nyud.net:8080/$1 [R,L]

!end code

What you need to edit:

RewriteCond %{REMOTE_ADDR} !^192.168.1.2$ - This should be your ip so you dont see the cached version

RewriteRule ^(.*)$ http://www.shoemoney.com.nyud.net:8080/$1 [R,L] - change the shoemoney.com part to our website but make sure you keep the nyud.net:8080 part intact.

How this works? Your webserver sees the referal from the social site and points people to the mirrored cached copy of your website thus not hammering on yours.

(This tip is also included in a lot of digg comments)

For the demonstration of this article I will use it. If you come from the digg link you will be redirected (dont feel that you need to digg this article though)




Related Posts:

  • What Started The Downfall of Digg
  • Aftervote Tops Social Search Engines
  • Google Throws Spammers A New Curve - Introducing Google Coop
  • posted on September 30th, 2006:
    Written By: ShoeMoney

    Links To This Post :

    1. Be Anti-Social - How To Deal With Diggs, Slashdots, Delicious And The Like

    2. Carnival of Business #24 - Fat Pitch Financials

    3. Webomatica

    4. SMO going Black Hat

    5. » 18 Questions Your CEO Forgot to Ask When Building Your Website - Stuntdubl - SEO Consultant

    6. Platinax Business Forums

    7. Net Crap (10/3) at Musings of a Chicagoan

    8. e-Rod Tech Watch Blog » Digg.com traffic shut me down today

    9. 18 Questions for Building Web site at Farooque

    10. Interesting Links for the day | zedomax.com - blog about DIYs and Review on reviews of gadgets and technologies...

    11. Digg Effect: Memoirs of A Crashed Server » Auto Parts for Brains

    12. Hosting Lowdown » How to: Survive the Digg Effect (The Ultimate Guide)

    13. Andrew Speaker and Power Advocates Misses the Mark - Search Engine Marketing Expert

    14. FlasheR

    15. Step-by-Step: Gaining Traffic from Social Voting Web Sites « Internet Marketing Blog by Noon-an-Night

    16. Top Internet Marketing Blog Posts…Ever

    17. Design Pilez » Be Anti-Social - How To Deal With Diggs, Slashdots, Delicious And The Like

    18. Web 2.0 Survival Guide

    19. Surviving Diggstruction | DulceNegosyante Helps You Make Money Online

    20. Your Ultimate Digg Resource: : tzuvelli.com




    44 Comments

    [...] « The Key To Being Anti-Social - How To Deal With Diggs, Slashdot, Delicious, ect [...]

     
    @September 30, 2006 9:23 pm
    ShoeMoney Says:

    also dont be a dumbass like me and double post

     
    @October 1, 2006 1:48 am
    Dino Says:

    Haha great tips…keep them coming shoemoney!

     
    @October 1, 2006 9:45 am
    Markus Says:

    When would you recommend setting this up? Being that you can’t really predict when and what article will get the spike.

     
    @October 1, 2006 11:08 am
    ShoeMoney Says:

    you can run it all the time

     
    @October 1, 2006 11:39 am

    Came to this from digg and my RSS feed. Did not redirect me either times =\

     
    @October 1, 2006 11:47 am
    micsaund Says:

    How often does nyud.net slurp content into the cache? Maybe it will pull the cache upon the first access so there is effectively no waiting period required.

     
    @October 1, 2006 11:54 am
    Daniel Says:

    I didn’t get redirected?

     
    @October 1, 2006 12:00 pm
    Bob Says:

    Dumb question: How does one get or set up a, as it says above, “the mirrored cached copy of your website” ?

     
    @October 1, 2006 12:32 pm
    ShoeMoney Says:

    i think it checks back hourly for a new version

     
    @October 1, 2006 12:49 pm
    Bob Says:

    Dumb question: How does one get, find or set up a, as it says above, “mirrored cached copy of your website” ?

     
    @October 1, 2006 1:48 pm
    PreZ Says:

    I got dugg pretty hard just last week and what I did was save the page of my blog as .htm upload it to my server and did a 301 redirect to that html page. The load and bandwidth significantly dropped.

     
    @October 1, 2006 1:52 pm
    Rose Says:

    Informative post!

     
    @October 1, 2006 3:59 pm
    missi Says:

    Great idea. Thx for the hint. :)

     
    @October 1, 2006 5:43 pm
    ShoeMoney Says:

    just by using that domain it works

     
    @October 1, 2006 6:49 pm
    JeffPosaka Says:

    Now I just need to write more articles…
    Thanks for the great piece of code.

     
    @October 1, 2006 9:15 pm
    SirNuke Says:

    CoralCDN does not automatically rewrite links, so any pages that do not contain a referer from Digg/* will not get redirected. Many anaylists of the Digg/* Effect show that most vistors don’t go past the first page, so this may not be a problem.

     
    @October 1, 2006 9:26 pm

    Great post. Thanks for the tip.

     
    @October 2, 2006 6:12 am

    [...] The Key To Being Anti-Social - How To Deal With Diggs, Slashdot, Delicious, ect at Shoe Money File this one under contingency planning. Learn how to deal with the success of gaining the attention of one of the major social bookmarking sites. Keep your business website from falling apart in its moment of success. [...]

     
    @October 2, 2006 10:01 am

    What if you’re running WP-Cache on WordPress? That should take care of the caching, right? So would you still need this?

     
    @October 2, 2006 2:34 pm
    Webomatica Says:

    Brush With Digg…

    No, this isn’t a toothpaste ad. I had my first brush with Digg over the weekend when someone submitted a link to my recent Zune post, saying Apple better watch out. Seeing the rise in traffic was amusing, and early this morning my server had some…

     
     
    @October 3, 2006 4:26 am

    This code looks to be useful, but if the user doesn’t pass referers (many firewalls block sending referers) they won’t get redirected.

    Also, I tested the code today from the Digg article and went thru to your homepage where the current title is “One Year Of Blogging…. Pretty Wild”. Kinda confusing to the user (me) who clicked a link in Digg marked “Be Anti-Social - How To Deal With Diggs, Slashdots, Delicious And The Like”.

    Something amiss in your .htaccess file?

     
    @October 3, 2006 5:10 am

    [...] Das diese Vorgehensweise in der Tat nützlich für den eigenen Traffic sein kann, zeigt z.B. eine Trafficstatistik bei Guy Kawasaki. Es soll ja in diesem Zusammenhang auch schon einen Menge Leute geben, die mit dem Mörder Traffic von z.B. Digg servertechnich nicht mehr klar kommen. Falls einer von euch auch solche Probleme hat, schaut mal bei Shoe Money vorbei. (Der Artikel heißt übrigens “The Key To Being Anti-Social - How To Deal With DIggs, Slashdot, Delicious, etc” und hat im Moment 832 Diggs !!!!! - Der Mann hat also bestimmt schon einige Erfahrung mit Mörder Traffic. (Irgendwie zu beneiden …) [...]

     

    [...] Guide to dealing with digg, slashdot, etc. - Shoemoney [...]

     
    @October 5, 2006 3:24 am

    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 r……

     
    @October 10, 2006 4:09 pm
    Andy Says:

    Would this still make statcounters increase?

     
    @October 16, 2006 11:15 pm

    [...] .htaccess Code to Install if You’re Being Digged, Slashdotted, Farked, BoingBoinged, and So On (tags: useful geekery reference) [...]

     
    @October 24, 2006 11:54 pm
    StephenJ Says:

    It looks to me like that last line should be changed a little, ie

    RewriteRule ^/(.*)$ http://www.shoemoney.com.nyud.net:8080/1 [R,L]

    Otherwise won’t you get a double slash in the destination address? (Keep in mind that I am new to mod_rewrite, so I could be wrong here…)

     

    [...] After the site was shut down a friend chimed in via e-mail and gave me a heads up to this link. Shoemoney explains how to deal with an avalanche of traffic by editing the .htaccess file so that your site re-directs to a mirror. [...]

     
    @January 30, 2007 10:29 am
    Dave Says:

    Isn’t it true that this requires that the user’s browser sends a referrer, which many people block, negating the solution in many cases?

     
    @March 17, 2007 10:59 pm

    [...] Guide to dealing with digg, slashdot, etc. - Shoemoney [...]

     

    [...] How to redirect Digg traffic if you are on a shared server using .htaccess file [...]

     
    @April 17, 2007 6:12 pm
    coop Says:

    i just implemented this on my blog… but it is showing the main page… not the post, what should i change?

     

    [...] Dealing with Digg [...]

     

    [...] a guide to redirecting to DuggMirror. Another option is using Coral. Shoemoney offers code for the Coral tool on his [...]

     

    [...] option would be to “frame” the page and still make use of the caching server. Jeremy also has information about how to deal with temporary surges in traffic. I’ve had sites on the home page of [...]

     
    @June 6, 2007 9:06 am
    FlasheR Says:

    And some else…….

    the most interest…

     

    [...] Step Two: Before you start submitting your article, it’s important to ensure that your server will be able to handle a large load of traffic in a short amount of time. For more on dealing with this potential issue, you can learn how to be “anti-social“. [...]

     
    @July 31, 2007 4:15 am

    [...] How to Deal with Digg’s, Slashdot and Delicous Jeremy gives tips on optimising your server to handle big traffic from the social sites [...]

     
     
    @January 10, 2008 7:18 am

    [...] sure about your server handling the load it might be an idea to plan ahead. Implementing a htaccess solution to redirect social network traffic to Coral cache is a good way to take the load off your site if you really can’t hack the [...]

     

    [...] my website was down, I’ve surfed around the internet and gathered some tips from the pros, here, here, and here who have experienced the Digg effect many times and handled it flawlessly. Here are [...]

     
    @February 10, 2008 2:57 pm

    [...] The Key To Being Anti-Social - How To Deal With Diggs, Slashdot, Delicious, ect Author: Jeremy Shoemaker of ShoeMoney.com    Excellent htaccess configuration tip for avoiding overloading your server if you make it to the Digg front page.  [...]

     

    Sorry, the comment form is closed at this time.

    Latest Radio Shows

    Latest Q&A

    Latest T-Shirt Fridays

    Thanks For The ADD!

    © 2008 Shoemoney Media Group. All rights reserved.

    Blog Design