• I have been trying to prevent people from remote linking from my images on my blog. However, it recently occurred to me that I might want to use remote linking sometimes. Is there anyway I can make a folder that is exempt from the image rerouting?

    This is the code that I am currently using in my .htaccess file:

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^https://sydlexia.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^https://www.sydlexia.com/.*$ [NC]
    RewriteRule .*.(gif|GIF|jpg|png|PNG)$ https://www.sydlexia.com/byteme.JPG [R]

    Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The htp referrer lines are the ‘gateways’, so you could add alternate allowed locations that way, but you couldn’t use wildcards too freely as this would allow others in.

    Thread Starter Syd_Lexia

    (@syd_lexia)

    I think I figured it out. I moved the code above into a new .htaccess file that I placed into my images folder and deleted it from the .htaccess file in the root directory. Then I created a new folder with images that I don’t mind people linking. It seems to be working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘.htaccess and a remote linking issue.’ is closed to new replies.