Welcome! Log In Create A New Profile

Advanced

Re: [ASK] Restrict direct link file access

August 13, 2010 07:06PM
On Fri, Aug 13, 2010 at 3:44 AM, antituhan <dewanggaba@gmail.com> wrote:
> Hi, Could nginx restrict direct link access / hotlink access to specified
> file/extension ?
> I try to write the rules like this :
>
> location ~ ^/*(\.exe)$ {
> deny ip.ad.dr.es;
> }
>
> But nothing happen, the files still can be downloaded by denied ip address.
> Somebody help me please :)

at least, you forgot a dot.

location ~ ^/.*(\.exe)$ {
deny ip.ad.dr.es;
}

(note that I'm not too familiar with deny directive)

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

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

[ASK] Restrict direct link file access

antituhan August 13, 2010 01:54PM

Re: [ASK] Restrict direct link file access

edogawaconan August 13, 2010 07:06PM

Re: [ASK] Restrict direct link file access

antituhan August 16, 2010 01:12AM

Re: [ASK] Restrict direct link file access

Cliff Wells August 16, 2010 06:38AM

Re: [ASK] Restrict direct link file access

antituhan August 16, 2010 01:32PM

Re: [ASK] Restrict direct link file access

Cliff Wells August 16, 2010 05:56PM

Re: [ASK] Restrict direct link file access

antituhan August 17, 2010 08:42PM

Re: [ASK] Restrict direct link file access

Cliff Wells August 17, 2010 09:58PM

Re: [ASK] Restrict direct link file access

Igor Sysoev August 18, 2010 03:00AM

Re: [ASK] Restrict direct link file access

antituhan August 18, 2010 11:58PM

Re: [ASK] Restrict direct link file access

antituhan August 16, 2010 01:38PM

Re: [ASK] Restrict direct link file access

Ensiferous August 16, 2010 06:01PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 324
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