• Resolved jimmmyd

    (@jimmmyd)


    Thanks for such a great plugin!

    In?Advanced settings -> System -> I -> Item 22: Enable photo html access, I have selected create ‘no hotlinking’ .htaccess files. It is writing the .htaccess file, but I am still able to go directly to the image using https://example.com/wp-content/uploads/wppa/1.jpg

    The .htaccess file in the /uploads/wppa folder is:

    RewriteEngine On

    RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?example.com [NC]

    RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?example.com.*$ [NC]

    RewriteRule .(jpg|jpeg|png|gif|mp4|ogv|webm|mp3|wav|ogg)$ - [NC,F]

    Any suggestions or is there something I am missing? Thanks for your time.

    • This topic was modified 1 year, 3 months ago by jimmmyd.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    When i click the link, i get this:

    `Example Domain

    This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.

    More information…`

    but not the image, so it looks to work

    Thread Starter jimmmyd

    (@jimmmyd)

    I was using example.com as just an “example.” I didn’t want to post the actual domain on this site. Is there any way to DM you with regards to this issue? Thanks for your time.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    You can mail me on opajaap at opajaap dot nl

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    It turned out that .htaccess does not work under NGINX Direct Delivery

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No Hotlinking htaccess file’ is closed to new replies.