Home » Htaccess Tools » Questions regarding htaccess » How do I stop hotlinking yet KEEP Frontpage working?
How do I stop hotlinking yet KEEP Frontpage working? [message #516] Wed, 02 August 2006 09:35 Go to next message
z0diac  is currently offline 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!!! Evil or Very Mad
How do I stop hotlinking yet KEEP Frontpage working? [message #529] Wed, 16 August 2006 13:27 Go to previous message
andreas  is currently offline 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.
Previous Topic:.phtml file ext, defined in .htaccess?
Next Topic:how to set password in a ProtectWizard
Goto Forum:
  


Current Time: Sat May 17 07:37:46 CEST 2008

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software