How to block Double extension file upload vulnerability like hack.jpg.php? [STEP BY STEP]☑️
Today in this blog we will show you how to block double extension file upload. But before getting started let us quick watch this video on How to block Double extension file upload vulnerability like hack.jpg.php embedded below.
Video Tutorial– “How to block Double extension file upload vulnerability like hack.jpg.php”
Follow the steps to block double extensions file upload via htaccess file:
Step::1 Login to your cPanel and open File Manager
Step::2 Go inside public_html
Step::3 Find the .htaccess file and right click over it and choose the Edit option
Step::4 Add the code in .htaccess file provided below
<FilesMatch ".*\.([^.]+)\.([^.]+)$"> Order Deny,Allow Deny from all </FilesMatch>
Step::5 Finally click over Save Changes.
This code will stop all double extensions file upload.
Thanks for Reading this article !!! We hope this was helpful to you all.
For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our YouTube channel –https://youtube.com/redserverhost.com
Facebook Page– https://facebook.com/redserverhost
Twitter Page– https://twitter.com/redserverhost.com
If you have any suggestions or problems related to this tutorial, please let us know via the comment section below.
Tags: cheap linux hosting, buy linux hosting, cheap reseller hosting, buy reseller hosting, best reseller hosting, cheap web hosting, cheapest web hosting, cheapest reseller hosting, cheap reseller host, cheap linux host, cheapest linux hosting, best linux hosting, best web hosting