Welcome! Log In Create A New Profile

Advanced

Re: Problem with Hotlink Protection

Francis Daly
September 14, 2011 03:24PM
On Wed, Sep 14, 2011 at 12:22:30PM -0400, dullnicker wrote:

Hi there,

> thank you very much indeed for taking the time to help me out. It seems
> that - with your help - I made it! :-)

You're welcome; and congratulations :-)

> I inserted the "invalid_referrer" check within the "location ~* \.php$"
> block like you suggested and it works like a charm now!

Good stuff.

> location ~ \.php(.*)$ {

Note that this config applies to all urls that include the four characters
".php"; that certainly includes your /image.php script, but possibly
also includes more.

If you're happy that all of those have this invalid_referer check,
then it's fine. If not, you'll want to adjust the config again.

All the best,

f
--
Francis Daly francis@daoine.org

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

Problem with Hotlink Protection

dullnicker September 14, 2011 11:19AM

Re: Problem with Hotlink Protection

Francis Daly September 14, 2011 11:54AM

Re: Problem with Hotlink Protection

dullnicker September 14, 2011 12:22PM

Re: Problem with Hotlink Protection

Francis Daly September 14, 2011 03:24PM

Re: Problem with Hotlink Protection

António P. P. Almeida September 14, 2011 03:58PM

Re: Problem with Hotlink Protection

dullnicker September 16, 2011 02:47PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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