2

I have nginx webserver and people are starting to hotlink to download.php and that gives me nothing.

I wish to add 4 white list sites from which it is possible to hotlink (domains of my site) and make others that hotlink to my site get redirected from download.php?id=32 to details.php?id=32 so they coul press the download button there and then download the file.

How could this be done?

Treat
  • 182
  • 1
  • 6
  • 15

1 Answers1

3

Check the example of the referer module. Just use a rewrite instead of the return.

kolbyjack
  • 17,660
  • 5
  • 48
  • 35