|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1 |
Registered User
|
Hot linking question
1) will an .htacess file work on a windows box?
2) this is the code I want to use to allow linking from ref RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(www\.)?example\.com/dir/ [NC RewriteCond %{HTTP_REFERER} !^$ RewriteRule \.(jpe?g|gif|bmp|png)$ images/nohotlink.jpg [L] The instructions for this code are To allow hotlinking images only if the REFERER (sic) is from a specific directory from your domain: What do they mean by Ref (sic)? Is this a text file that I would have the ref domains listed in? I am linking with other pages now and do not want to screw myself by not allowing sites that shold be able to link. Or am I looking at this all wrong. Oh one other thing, site when live last night and we got our first sale from two lesbians. ![]() ![]() |
![]() |
![]() |
![]() |
#2 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
Are you running IIS or Apache on the Windows Server? If Apache, then yes, you can use .htaccess files.
The Referer (or properly spelled, Referrer -- apache has spelled it wrong all these years and it has sort of stuck), is the site which is requesting the image. The Browser passes this info along when it does the request. In the above, you would replace example.com with your domain name to allow your site to display images properly. Places that have hotlinked would then be served the nohotlink image. A while back Raymor, Swedguy and a few other people banged on this as being about the best optimized, most complete .htaccess rule. http://www.greenguysboard.com/board/...em#faq_hotlink If you are running IIS, then you need to get an ISAPI filter to do referral protection, and I remember one product being Coldlink which did a programmatic hash on the url path of images that needed to be protected.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#3 |
Registered User
|
Thank you so much. I did find a program at http://www.iistoolshed.com/tools.aspx
That seems like it will do the job. I have to read more before I start playing with this and possibly break the site. Also I have downloaded the whos on 3.0 for any of you who have MS with iis. This is a nice tool. I'm not trying to promote them. But I installed it and it has a ton of info thats really nice. Thanks cd34 |
![]() |
![]() |
![]() |
|
|