Block all filename.php.jpg

Hi,
Is there anyway to prevent for example any file on my server to be uploaded or called filename.php.jph.

I have a new dedicated server and wish to prevent *.php.jpg as I have been hacked before with people upload such files. I allow upload of jpg files to my server.

Thank you

 

 

 

 

Top