Welcome! Log In Create A New Profile

Advanced

Re: Prevent hotlinking

April 12, 2009 02:29PM
Its not Wordpress sending the header it's your browser sending the
header (unless this is wordpress fetching images using some plugin and
then youll have to modify the script to send a referer header (I
believe it is spelled wrong, technically)

On Apr 12, 2009, at 10:41 AM, Max wrote:

> Hello,
>
> Thanks. I tried that. But it's still not working. I am using
> wordpress. Don't know what referrer header wordpress send.
>
> Max
>
> On Mon, Apr 13, 2009 at 12:40 AM, Michael Shadle
> wrote:
> Try
>
> "valid_referers none blocked *.etc.com etc"
>
> perhaps you're not sending a referrer header. Some "internet security
> suites" do that for "privacy" and I hate them. or malfunctioning
> browsers or some browsers include that option now.
>
> that's the only thing I see wrong there.
>
> On Sun, Apr 12, 2009 at 8:45 AM, Max wrote:
> > Hello all,
> >
> > I tried to use the following code to prevent hotlinking. But it
> blockes
> > myself as well, anyone got any idea?
> >
> > location ~* (\.jpg|\.png|\.css)$ {
> > valid_referers blocked domain.com *.domain.com;
> > if ($invalid_referer) {
> > return 404;
> > }
> > }
> >
> > Thanks.
> >
> > Max
> >
> >
>
>
Subject Author Posted

Prevent hotlinking

Max April 12, 2009 11:45AM

Re: Prevent hotlinking

mike April 12, 2009 12:40PM

Re: Prevent hotlinking

Max April 12, 2009 01:41PM

Re: Prevent hotlinking

mike April 12, 2009 02:29PM

Re: Prevent hotlinking

Gabriel Ramuglia April 12, 2009 02:35PM

Re: Prevent hotlinking

mike April 12, 2009 02:44PM

Re: Prevent hotlinking

mike April 12, 2009 03:05PM

Re: Prevent hotlinking

Gabriel Ramuglia April 12, 2009 04:01PM

Re: Prevent hotlinking

Gabriel Ramuglia April 12, 2009 03:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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