Greenguy's Board

WebcamWiz CRAZY $5,000 Reward Bonuses WebcamWiz CRAZY $5,000 Reward Bonuses WebcamWiz CRAZY $5,000 Reward Bonuses WebcamWiz CRAZY $5,000 Reward Bonuses WebcamWiz CRAZY $5,000 Reward Bonuses

Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-05-14, 11:32 AM   #1
juggernaut
Registered User
 
juggernaut's Avatar
 
Join Date: Apr 2005
Location: Central Jersey! If I was rich and powerful I would dress as my avatar does.
Posts: 1,448
Send a message via Yahoo to juggernaut
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. $100.00 Made for my first peaceful sleep last night Thanks Guys. Jugg..
juggernaut is offline   Reply With Quote
Old 2005-05-14, 11:42 AM   #2
cd34
a.k.a. Sparky
 
cd34's Avatar
 
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
cd34 is offline   Reply With Quote
Old 2005-05-14, 12:23 PM   #3
juggernaut
Registered User
 
juggernaut's Avatar
 
Join Date: Apr 2005
Location: Central Jersey! If I was rich and powerful I would dress as my avatar does.
Posts: 1,448
Send a message via Yahoo to juggernaut
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
juggernaut is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:28 PM.


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