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 06-18-2005, 12:43 AM   #1
darnit
Confirmed User
 
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
htaccess question

Hi,

This is probably a pretty stupid question for those technically minded. But here it goes.

I have a folder of thumbs that I dont want to be available unless opened within an HTML page. Is there a way to modify my htaccess file so the thumbs can not be seen unless loaded within an .html file or opened directy by going to the .jpg directly?

Thanks in advance.
darnit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2005, 12:44 AM   #2
aico
Moo Moo Cow
 
Join Date: Mar 2004
Location: Washington State
Posts: 14,748
just put a blank file in there and name it index.html
aico is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2005, 12:47 AM   #3
darnit
Confirmed User
 
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
Quote:
Originally Posted by aico
just put a blank file in there and name it index.html
Yes but that still wont stop those who access the .jpg file directly. Basically I dont want the file to load unless from a page. However I do have other graphics that need to load on the domain so im seeking a solution for a specific directory behavior regarding images.
darnit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2005, 12:50 AM   #4
aico
Moo Moo Cow
 
Join Date: Mar 2004
Location: Washington State
Posts: 14,748
Quote:
Originally Posted by darnit
... so the thumbs can not be seen unless loaded within an .html file or opened directy by going to the .jpg directly?
Sorry, I gave you the solution for what you asked...
aico is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2005, 12:53 AM   #5
broke
Confirmed User
 
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ site.info.here [R,NC]
__________________
Perfect Gonzo
broke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2005, 12:55 AM   #6
kernelpanic
Too lazy to set a custom title
 
Join Date: Jan 2005
Posts: 2,961
Are you looking to stop hotlinking, or type-ins of the jpeg? If your goal is to stop the latter, I urge you to reconsider. When someone "accesses it directly", no referer headers are sent to the server with the HTTP request.

Why would this be problematic? Many surfers use privacy products, at browser, system, or firewall level that block the sending of HTTP referer headers. Thus, direct access would be indistinguishable from one of those "enhanced privacy" pieces of software.

Why is direct access such a problem? If they can't browse the directory, and don't know image names, then how is it a problem?
kernelpanic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2005, 01:04 AM   #7
darnit
Confirmed User
 
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
Quote:
Originally Posted by kernelpanic
Are you looking to stop hotlinking, or type-ins of the jpeg? If your goal is to stop the latter, I urge you to reconsider. When someone "accesses it directly", no referer headers are sent to the server with the HTTP request.

Why would this be problematic? Many surfers use privacy products, at browser, system, or firewall level that block the sending of HTTP referer headers. Thus, direct access would be indistinguishable from one of those "enhanced privacy" pieces of software.

Why is direct access such a problem? If they can't browse the directory, and don't know image names, then how is it a problem?
Actually its because of 2257. I have ton of fake tgps that use remote thumbs. They have all been coverted to text links. I want to continue to use their listings however the program errors out if it cant upload thumbs to my server. So by disabling thumbs from being "available" to the web unless loaded in a page there is a reduced risk. Paranoid = yes.
darnit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2005, 01:08 AM   #8
kernelpanic
Too lazy to set a custom title
 
Join Date: Jan 2005
Posts: 2,961
Quote:
Originally Posted by darnit
Actually its because of 2257. I have ton of fake tgps that use remote thumbs. They have all been coverted to text links. I want to continue to use their listings however the program errors out if it cant upload thumbs to my server. So by disabling thumbs from being "available" to the web unless loaded in a page there is a reduced risk. Paranoid = yes.
Ohh, so it is about remote linking then.


You'll want to use mod_rewrite
http://httpd.apache.org/docs/mod/mod_rewrite.html



it will look something like this:
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_REFERER} !^http://www.pornosite.com [NC,OR]
RewriteCond %{HTTP_REFERER} !^http://pornosite.com [NC]
RewriteRule [^/]+.(jpg|jpeg|gif|png)$ - [NC,F,L]
kernelpanic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-18-2005, 01:13 AM   #9
darnit
Confirmed User
 
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
Just what i needed...

Thanks broke and kernel.... everyone please click on their sigs
darnit 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.