AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Url mp3 download4/6/2023 ![]() Make sure to replace example by your own domain name. m4a: Apache will respond with 403 Forbidden Access message. If they do not begin with http(s)://(the request will be blocked for any. The next 2 lines check for the HTTP_REFERER value for the request. Step 2 – Add the following lines inside server block to disable direct access to jpg, png and gif files. If you have setup virtual hosts on your NGINX server, then open its configuration file in a text editor. Step 1 – Open NGINX Configuration File $ vi /etc/nginx/sites-available/default In most cases, you will need to contact your hosting provider so they can add the rules in the server config. ![]() There are 2 different ways to achieve this and it depends your web server. This will disallow people from directly requesting MP3 files URL on their browsers and throw a 403 Forbidden error for the user who attempts direct file access. Sometimes you may want to protect audio files from being downloaded from your server, while you want to allow mp3 files to be played in our player.
0 Comments
Read More
Leave a Reply. |