Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   htaccess question... (http://www.greenguysboard.com/board/showthread.php?t=10760)

Bell 2004-09-02 05:12 PM

htaccess question...
 
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 05: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 03:21 PM

thank you for helping me urb...

:)

~Bell

Bell 2004-09-03 03: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 03:30 PM

Quote:

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 03: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 03:43 PM

From the land of trannies, wind, and rain…
http://refer.ccbill.com/cgi-bin/clic...om/webmasters/

Bell 2004-09-03 07:52 PM

[quote]Originally posted by Cleo
From the land of trannies, wind, and rain…
http://refer.ccbill.com/cgi-bin/clic...om/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/clic...om/webmasters/]


~Bell


All times are GMT -4. The time now is 05:22 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc