Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-29-2002, 06:08 PM   #1
ammo325
Confirmed User
 
Join Date: Jan 2001
Location: LV Nev
Posts: 467
Htaccess Question

I know this has probably been asked before but what the heck.

I have an htaccess in my root domain that protects against hotlinking. It applies to all the images in that domain. How do I make it so that it protects against unwanted hotlinking but still allows SEs to use the image for promotion?

Thanks for any help you can provide.
__________________
Submit to Lostbush
ammo325 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2002, 06:11 PM   #2
mike503
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: oregon.
Posts: 2,243
Quote:
Originally posted by ammo325
I know this has probably been asked before but what the heck.

I have an htaccess in my root domain that protects against hotlinking. It applies to all the images in that domain. How do I make it so that it protects against unwanted hotlinking but still allows SEs to use the image for promotion?

Thanks for any help you can provide.
you'd have to do it on an SE-per-SE basis. you'd have to add them as an "allowed referrer" just like you've set it up so local referrals work.
__________________
php/mysql guru. hosting, coding, all that jazz.
mike503 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2002, 06:17 PM   #3
jimmyf
OU812
 
Join Date: Feb 2001
Location: California
Posts: 12,651
or just use it in folders were you have images...
.htaccess
That's what I do....


can put it as many folders as you want....
__________________
Epic CashEpic Cash works for me
Solar Cash Paysite Plugin
Gallery of the day freesites,POTD,Gallery generator with free hosting
jimmyf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2002, 06:19 PM   #4
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
I would recomend using scripting to prevent hotlinking, Im currently looking into solutions for a couple of webmasters, .htaccess only blocks around 50% of people (am i correct in this estimate) Anyways I script could block 99.9% of people hotlinking.
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2002, 07:10 PM   #5
XXXManager
So Fucking Banned
 
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
A. You all probably mean mod_rewrite and not .htaccess. You happen to use it in .htaccess but its still mod_rewrite (can be placed in httpd.conf as well)
which leads to foe's remark
Why do you think you can do anything with script that you cant do with mod_rewrite????
mod_rewrite blocks most of hotlinking (if used right) and not only 50%. What you do to block hotlinking is block all access to images (jpg,gif,...) from HTTP_REFERER that is not your own site.
(problem with anti-hotlinking is that it may block more than 100% meaning blocking legal requests from client browsers that hide HTTP_REFERER [personal firewalls and shit])

Id be happy to know what a script can do that mod_rewrite cant regarding the hotlinking issue. foe? enlighten us, would you?
XXXManager is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2002, 08:37 PM   #6
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
could mod_rewrite do this, block all http_refferers from all domains not in a specified list?
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2002, 09:10 PM   #7
spanky
Confirmed User
 
Industry Role:
Join Date: Apr 2002
Posts: 231
Quote:
Originally posted by foe
could mod_rewrite do this, block all http_refferers from all domains not in a specified list?
yes, at the apache request URI translation stage so it is quite efficient.

cheers
spanky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-29-2002, 09:12 PM   #8
spanky
Confirmed User
 
Industry Role:
Join Date: Apr 2002
Posts: 231
actually, choker just posted a very nice example of it in another thread

cheers
spanky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-30-2002, 05:54 AM   #9
XXXManager
So Fucking Banned
 
Join Date: Mar 2002
Location: Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy
Posts: 893
mod_rewrite is an rule-based script-like language implemented as an apache module. very easy to do what foe asked.
You can very sophisticated conditioning not only upon referer.
I'd suggest to read the mod_rewrite tutorial before deciding to do something on script. you will be surprised what you can achieve with mod_rewrite.
mod_rewrite is a little complex to grasp and master - but once you are "there" you will be a happy webMaster
XXXManager is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.