| How do I stop hotlinking yet KEEP Frontpage working? [message #516] |
Wed, 02 August 2006 09:35  |
z0diac Messages: 1 Registered: August 2006 |
|
|
|
I've used the lines below added to my .htaccess to stop other sites from hotlinking my files:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
Which works, but unfortunately all my Frontpage extensions don't work - which means I can't login to edit my site with Frontpage, my hit counter doesn't work, and my Site Search for Text doesn't work....
I DID have a working .htaccess before that also worked with Frontpage extensions, but for some reason I just noticed tonight that my .htaccess seems to have reset itself back to an earlier form somehow and it's allowing hotlinking again, and I can't seem to find a copy of my old .htaccess file that worked with blocking hotlinking and allowed all the Frontpage stuff.
Does anyone have an example set of lines to add to .htaccess that will
1: block hotlinking from other sites
2: continue to allow Frontpage extensions to work
??
Thanks in advance!!!
|
|
|
| How do I stop hotlinking yet KEEP Frontpage working? [message #529] |
Wed, 16 August 2006 13:27  |
andreas Messages: 239 Registered: January 2005 Location: Denmark |
Site Admin
|
|
|
|
Sorry, I cant help. I have never used Frontpage extensions. I also have no idea why the code you posted should prevent FP extensions from working. Maybe you could try moving the code to a .htaccess in a subdirectory where you have placed your images.
|
|
|