on-internet
← Community

Disable file upload using htaccess

Stack Overflow ·

Recently, one of my clients website has been attacked. I noticed there, in the tmp directory attacker uploaded php script, where a user can upload images. My question is, is it possible to stop uploading any files other than images using HTACCESS? The website is built on Codeigniter. Thanks in advance. Any type of help is appreciated.

Comments

Sign in or sign up to comment and upvote.

No comments yet.