Welcome! Log In Create A New Profile

Advanced

Re: Disable hotlinking protection for specific file !!

Maxim Dounin
November 28, 2013 03:56AM
Hello!

On Thu, Nov 28, 2013 at 01:16:23PM +0500, shahzaib shahzaib wrote:

> Hello,
>
> The root directory path is /var/www/html/domain and every file
> within it is hotlink protected for (mp4). Now here's a file named
> /var/www/html/domain/videos/test.mp4 and i want this file to be available
> for public with no hotlinking restriction. Is that possible with nginx ?
> vhost config is given below. Please help me regarding it.

Adding an exact match location will help, e.g.:

location = /test.mp4 {
# no hotlink protection here
...
}

See http://nginx.org/r/location for details on location matching.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Disable hotlinking protection for specific file !!

shahzaib1232 November 28, 2013 03:18AM

Re: Disable hotlinking protection for specific file !!

Maxim Dounin November 28, 2013 03:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready