![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Moo Moo Cow
Join Date: Mar 2004
Location: Washington State
Posts: 14,748
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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?
__________________
![]() ZangoCash - Turn Your Traffic Into Ca$h. $.40 Per Install - No Tier |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Jul 2001
Location: Teh Interweb
Posts: 2,439
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Too lazy to set a custom title
Join Date: Jan 2005
Posts: 2,961
|
Quote:
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]
__________________
![]() ZangoCash - Turn Your Traffic Into Ca$h. $.40 Per Install - No Tier |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |