CCDN is a peer-to-peer Content Distribution Network for the Community.
How it works:
We Install it (you and me)
yourserver.com and myserver.com
We add a trust network (a list of servers you trust )
on your server:
myserver.com | png, jpg | upto 1g | 6 hours
example.com | tar.gz, zip | upto 10g | as long as needed
example2.com | jpg, png, gif, flv | upto 200g | always
on my server
yourserver.com | png, jpg, zip, gz | upto 500m | a week
If a server is over loaded and the other server is idling the server overloaded (yourserver.com eg) says help to all the others in the trust list.
For each of the servers that say yes I'll help
by sending e.g. :
I'll host
png, jpg, zip, gz
upto 500m
for a week
add http://myserver.com/files/ccdn/yourserver.com to your uri's
The yourserver.com then starts adding http://myserver.com/files/ccdn/yourserver.com into the url's of it's images e.g.:
from
<img src=/files/image.png />
to
<img src=http://myserver.com/files/ccdn/yourserver.com/files/image.png />