Forum Moderators: phranque

Message Too Old, No Replies

Combating Digg/Slashdot effect?

         

BlackRaven

1:08 am on Oct 3, 2005 (gmt 0)

10+ Year Member



Sad to say that my site crashed (a phpbb forum) because of being listed in Digg (Just glad it wasnt slashdot). Anyways wondering if someone out there could make a .htaccess file so that if someone is being directed from the digg or slashdot website they are directed to the example.com:8090 page

For example say suppost the url http://example.com/viewtopic.php?t=34]gets listed on slashdot or digg, i want to do a rewrite of the url so that it points here http://example.net:8090/viewtopic.php?t=34]

[edited by: jdMorgan at 3:57 am (utc) on Oct. 4, 2005]
[edit reason] Examplified. [/edit]

BlackRaven

2:45 am on Oct 3, 2005 (gmt 0)

10+ Year Member



got this far,

RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} slashdot\.org [NC,OR]
RewriteCond %{HTTP_REFERER} digg\.com
RewriteRule ^/(.example.net:8090*)$ [%example.com$1...] [R]

[edited by: jdMorgan at 3:58 am (utc) on Oct. 4, 2005]
[edit reason] Examplified. [/edit]

magicsloth

2:55 pm on Oct 3, 2005 (gmt 0)

10+ Year Member



I would think that Slashdot and Dig users are probably more likely than the average user to not send referral information. This will still block some of them though but I don't know that it will save you from slashdotting.