I’ve read that there is a some small security advantage to obfuscating *.php files as *.html files. On Apache servers such can be accomplished by adding the following line to .htaccess:
AddType application/x-httpd-php .html
But are there performance and/or other disadvantages to doing that?
dynamo mailing list
email@hidden
Update your subscriptions at:
I’ve read that there is a some small security advantage to obfuscating *.php files as *.html files. On Apache servers such can be accomplished by adding the following line to .htaccess:
AddType application/x-httpd-php .html
But are there performance and/or other disadvantages to doing that?
If you make that setting the server will have to pass all *.html files through php processing, regardless of whether they contain php code or not. That is all extra cpu cycles. It’s a long time since I built a web server, but it wouldn’t surprise me if it didn’t double or even triple the cpu cycles.