![]() |
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. |
just put a blank file in there and name it index.html
|
Quote:
|
Quote:
|
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ site.info.here [R,NC]
|
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? |
Quote:
|
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 |
Just what i needed...
Thanks broke and kernel.... everyone please click on their sigs :winkwink: |
All times are GMT -7. The time now is 07:11 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123