PCI scanning reports the below issue for my Joomla site:
"It is possible to retrieve file backups from the remote web server"
I've checked it manually by accessing http://example.com/component/user/~
Basically it does not throw 404 error while accessing http://example.com/component/user/~
I want to throw 404 error or redirect to home page while accessing any directory using ~
So what I have tried is to add below line in my .htaccess
RewriteCond %{REQUEST_URI} ![~]$ [NC]
However, this does not work.
Is there any other way to fix this or is above command correct and where exactly should it be placed?
I've tried putting this under root directory and under /joomla/components/mod_user
directory.