108 reputation
4
bio website
location Missouri
age 34
visits member for 3 years, 6 months
seen Sep 24 at 2:56

PHP and beer.


Sep
24
awarded  Autobiographer
Apr
6
comment .htaccess and linux permissions
Thanks @Kromey. The .htaccess file does not allow serving php from this directory, and we also resize the images as they come in (using imagick) and use mod_rewrite for all incoming urls. We're looking at using finfo to inspect the files themselves, since MIME type is unreliable. Any other advice or sources are much appreciated. =D
Apr
6
awarded  Student
Apr
6
awarded  Scholar
Apr
6
accepted .htaccess and linux permissions
Apr
6
comment .htaccess and linux permissions
Aha! That makes a lot more sense. It seems apache sets the umask correctly and I was confused on execute for directories. Thanks.
Apr
6
comment .htaccess and linux permissions
The user can upload images to their site. They are saved and served from /files. I don't want execute permissions on this directory to prevent users from uploading malicious files and having execute permissions.
Apr
6
awarded  Supporter
Apr
6
asked .htaccess and linux permissions