Sublime directory Surf the web anonymous Pagerank Monitor


Another htaccess question

YMC
Fri 25 August 2006, 11:00 pm GMT +0200
I give up. Looked all over and nothing is working.

I currently have this code:
Quote
SetEnvIfNoCase Referer "^http://www.yourmessageconsultant.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.yourmessageconsultant.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://yourmessageconsultant.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://yourmessageconsultant.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://www.helpforwebbeginners.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.helpforwebbeginners.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://helpforwebbeginners.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://helpforwebbeginners.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://www.craftytips.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://www.craftytips.com$" locally_linked=1
SetEnvIfNoCase Referer "^http://craftytips.com/" locally_linked=1
SetEnvIfNoCase Referer "^http://craftytips.com$" locally_linked=1

SetEnvIfNoCase Referer "^$" locally_linked=1
<FilesMatch "\.(gif|png|jpe?g)$">
  Order Allow,Deny
  Allow from env=locally_linked
</FilesMatch>

What I want to do is to allow folks to hotlink to my advertising banner. I've tried offering it whenever anyone tries to link. I've created a directory called Share with an htaccess of no referrer (don't remember code got it off some forum). None worked so I went back to original.

What am I missing?

Thanks again guys for all the help.

Nikolas
Sat 26 August 2006, 10:47 am GMT +0200
Can you please describe what exactly you want to do?

If you want to allow hotlinking then you don't need any .htaccess rule.

Otherwise if you want to allow hotlinking only from specific sites then you propably need to work this out.

Let me know so we can see how it works :)

YMC
Sun 27 August 2006, 03:36 pm GMT +0200
What I am hoping to do is to allow hotlinking only to my advertising banner, but no other images on any of the three sites.

The banner is for the crafty site. I had thought about making a rule offer it when someone tries to hotlink to anything on the crafty site, but that didn't work - at least what I tried. Protection of the images on the crafty site is more important than the other two as most of the pictures on the site are going to belong to the crafters.

Nikolas
Sun 27 August 2006, 04:08 pm GMT +0200
I think the solution is here :

http://underscorebleach.net/jotsheet/2004/11/stop-image-hotlinking-tutorial-htaccess-apache

YMC
Sun 27 August 2006, 05:10 pm GMT +0200
That site had much better detail than anything else I've looked at. Still not working. Will have to look into this more. I suspect part of the problem is that it is an add-on domain. I've even modified the htaccess for the add-on, still doesn't change. Might be better to start over from scratch instead of modifying what I already have.

Nikolas
Sun 27 August 2006, 05:28 pm GMT +0200
If you are redirecting domains, then it wont work any way, because the redirect does not hold the referer information too.

YMC
Sun 27 August 2006, 07:46 pm GMT +0200
Shouldn't be any redirecting with this. Probably more problems because of the way cPanel treats add-on domains like subdomains.

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional