Prevent users from accessing URLs using htaccess

Viewed 45

I have an htaccess code that prevents the user from accessing a song file via URL but the issue I'm having here is that when I click the download button, it won't download the song. please is there any way I can adjust it in order to download the song except the URL?

Here is the code:

RewriteRule \.(|mp3|)$ - [F,L]

what I'm expecting is only to avoid being downloaded from the URL

0 Answers
Related