Ready to get started?Download WordPress


[Plugin: NextGEN Gallery] How to prevent image hotlinking? (4 posts)

  1. teknoledge
    Posted 6 years ago #

    Is there a way not to use JS effects for opening images but instead to get image opened via template file so every image is like a single post?

    Also to use permalinks to prevent hotlinking, e.g.


    Thanks in advance,

  2. Alex Rabe
    Posted 6 years ago #

    have you tried the Imagebrowser feature (see options)

    or switch to the WP Core gallery... (Which comes without the effect)

  3. Williwaw
    Posted 6 years ago #

    You can put this into your .htaccess to prevent the hotlinking

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?YourDomain.com/.*$ [NC]
    RewriteRule \.(gif|png|jpg)$ - [F]
  4. teknoledge
    Posted 6 years ago #

    Ah, exactly what I was looking for. :)

    I was thinking more about permalinks for images e.g.


    instead of:

    wp-content/gallery/whatever/image file name.jpg

    Also it would be good to add replacement of spaces (' ') with hyphens for uploaded images in the feature versions of NGG, I'm sure it's not a big job.

    Cheers! :)

Topic Closed

This topic has been closed to new replies.

About this Topic