PDA

View Full Version : htaccess question...


Bell
2004-09-02, 06:12 PM
I need to add something to my .htaccess that will accomplish the following - while still
protecting me from all other hotlinkers...

I want to be able to allow a specific site access to hotlinking a specific image that I could put
separately on it's on url if necessary...

and in the future if I wanted to allow one or two other specific domain names access to
hotlinking a specific image would that cause a conflict in the .htaccess of can whatever
works to allow one specific site access also be configured in a manner to allow the other
one or two domain names access to the ONE image...

thanks in advance...
:)

~Bell

urb
2004-09-03, 06:39 AM
You just need to add authorised domains to the list of referrers...


RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.othersite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://othersite.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://othersite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.othersite.com*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://othersite.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.othersite.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://othersite.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.othersite.com:80.*$ [NC]

and then place the ONE image into a folder on it's own with the .htaccess file.

Note that I didn't include the full .htaccess code, just the referrers bit.

Bell
2004-09-03, 04:21 PM
thank you for helping me urb...

:)

~Bell

Bell
2004-09-03, 04:26 PM
urb...

I am getting ready to sign up with Foxy Angel's site...

what's your ref. code and I will sign up under you ...

~Bell

urb
2004-09-03, 04:30 PM
Originally posted by Bell
urb...

I am getting ready to sign up with Foxy Angel's site...

what's your ref. code and I will sign up under you ...

~Bell

LOL - thank you, but I only designed it.

I haven't had time to sign up myself.

Bell
2004-09-03, 04:39 PM
alrighty then...

can't say I didn't try...

and you did a good job on the design work BTW...


another person here that had numerous times been kind enough to respond to my need for help has been Cleo...

Cleo - if you are here today and can post your ref. code I'll sign up under you ...

~Bell

Cleo
2004-09-03, 04:43 PM
From the land of trannies, wind, and rain…
http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=913226-0003&PA=656559&HTML=http://foxy-angel.com/webmasters/

Bell
2004-09-03, 08:52 PM
[QUOTE]Originally posted by Cleo
From the land of trannies, wind, and rain…
http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=913226-0003&PA=656559&HTML=http://foxy-angel.com/webmasters/ [/QUOTE





thanks Cleo...
I signed up under you today and got my own shiny new - webmaster affiliate link - isn't it purty ?? (LOL)

http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=913226-0003&PA=779658&HTML=http://foxy-angel.com/webmasters/]


~Bell