February 02, 2014, 01:20:12 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: option to (ab)use directory nodes as redirectors to index.html and such  (Read 2506 times)
Posts: 1

View Profile
« on: July 24, 2009, 01:27:53 AM »

Ok, I do not know ruby so I wanted to throw this idea out to see if anyone can tell me what is wrong with it.

As far as I can tell, directories are stored as files with a fixed string in them (and fixed md5) and all the actual attributes are stored as headers.What if we put a javascript (or even plain html refresh redirect) into that file so that it will act as a fake index.html redirector for use of s3 as web servers (I am aware you cannot do that on the bucket level)

The only issue is that it would be nice to create a key with a trailing / for each directory in addition to one without.

What am I missing here - why is this a bad idea?

(here is an example that seems to work - change these two lines:
$S3syncDirString = '<script>window.location=window.location.pathname.replace(/\\/$/,"")+"/index.html";</script>{E40327BF-517A-46e8-A6C3-AF51BC263F59}'
$S3syncDirTag = '2cf7874cf11dc33742d5014722e9aae4'


Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!