Coral Caching - immunizing your website from the digg effect
Posted: 01 September 2006 03:41 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  144
Joined  07-21-2006

I’ve been using the digg defender plugin on a wordpress blog.

Its a neat plugin in that automatically rewrites/redirects the url if the referrer is digg, slashdot, boingboing, delicious, fark, reddit, engadget, kuro5hin (you can easily modify these in their function file to add more) to coralify it, sending traffic to Coral Cache, the global cache system.

Wondered if anything like this is available for EE, and if not if anyone with the coding smarts might take it upon themselves to port the plugin?

 Signature 

// matthanson.net
// twitter

Profile
 
 
Posted: 01 September 2006 07:23 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  301
Joined  06-28-2006

Interesting…

 Signature 
Profile
 
 
Posted: 07 December 2006 08:47 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  647
Joined  05-16-2004

Did anyone take action on this?

TTFN
Travis

 Signature 

Fight spam better with “Defensio for EE,” a free module


Hop Studios Internet Consulting
http://www.hopstudios.com/

Profile
 
 
Posted: 14 February 2007 11:13 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  838
Joined  04-24-2002

I edited my .htaccess file and added the following:

RewriteEngine On
RewriteCond
%{HTTP_USER_AGENT} !^CoralWebPrx
RewriteCond
%{QUERY_STRING} !(^|&)coral-no-serve$
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?digg\.com [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?slashdot\.org [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?slashdot\.com [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?fark\.com [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?somethingawful\.com [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?kuro5hin\.org [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?engadget\.com [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?boingboing\.net [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?del\.icio\.us
RewriteRule ^(.*)?$ http://YOURDOMAIN.COM.nyud.net:8080/$1 [R,L]

It’s easy enough to add other sites you want to redirect. Not sure if that’s what you’re looking for, but it works great for me.

 Signature 

chrisruzin.netTextMate EE BundleTextMate EE Developer Bundle • Pro Network member
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
Posted: 15 February 2007 12:15 AM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1470
Joined  08-28-2003
Chris Ruzin - 14 February 2007 11:13 PM

I edited my .htaccess file and added the following:

RewriteEngine On
RewriteCond
%{HTTP_USER_AGENT} !^CoralWebPrx
RewriteCond
%{QUERY_STRING} !(^|&)coral-no-serve$
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?digg\.com [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?slashdot\.org [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?slashdot\.com [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?fark\.com [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?somethingawful\.com [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?kuro5hin\.org [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?engadget\.com [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?boingboing\.net [OR]
RewriteCond %{HTTP_REFERER} ^http://([^/]+\.)?del\.icio\.us
RewriteRule ^(.*)?$ http://YOURDOMAIN.COM.nyud.net:8080/$1 [R,L]

It’s easy enough to add other sites you want to redirect. Not sure if that’s what you’re looking for, but it works great for me.

Chris, this is great work. Can you explain some of what it does (besides the obvious redirect) for those of us still learning the intracacies of mod_rewrite? For example, I don’t fully understand this part of the string:

RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
RewriteCond
%{QUERY_STRING} !(^|&)coral-no-serve$

And this one (the reference to port 8080):

RewriteRule ^(.*)?$ http://YOURDOMAIN.COM.nyud.net:8080/$1 [R,L]

Thanks.

 Signature 

RonnieMc

Honolulu, HI USA

HomeMac360

Profile
 
 
Posted: 15 February 2007 01:09 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  838
Joined  04-24-2002

I didn’t come up with this. I found it here.

RewriteCond %{HTTP_USER_AGENT} !^CoralWebPrx
RewriteCond
%{QUERY_STRING} !(^|&)coral-no-serve$

This is an exception to the redirect letting Coral Cache servers through.

RewriteRule ^(.*)?$ http://YOURDOMAIN.COM.nyud.net:8080/$1 [R,L]

The 8080 port is always used in Coral cached links.

 Signature 

chrisruzin.netTextMate EE BundleTextMate EE Developer Bundle • Pro Network member
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64905 Total Logged-in Users: 58
Total Topics: 81838 Total Anonymous Users: 36
Total Replies: 440021 Total Guests: 236
Total Posts: 521859    
Members ( View Memberlist )