Facebook Homepage Source Code Found!

Hmm, seems a problem with the .htaccess file made the source for Facebooks homepage available.

Nik Cubrilovic offers an explanation from a technical standpoint:

PHP has always been notorious for sometimes not processing requests poorly and sending back the source code for pages to the client. Because of the way mod_php works with apache, if mod_php fails in intercepting and processing the request, then apache will just serve it back to the client as an ordinary text file.

He also goes on to suggest good security practices with PHP/Apache which is well worth a read for any developer.

Click here to see the actual code and more Facebook ‘secrets’

Comments