Jason,

Are you asking about a method like .htaccess for non Apache based web
servers?  Or do you want to know more about how to write your own .htaccess
files?

Benjamin Fitts
Web Developer
uclick, LLC
www.uclick.com
[EMAIL PROTECTED]

Get your favorite comics emailed daily for FREE!
Visit uComics.com - The best comics site in the universe!
http://uComics.com

-----Original Message-----
From: Jason [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 4:18 PM
To: CF-Server
Subject: FW: Your post



Does anyone know a method to use the Unix/Apache method of .htaccess to
block users access to a directory based on referer? Could I use Advanced
security on a web cluster to protect file/image directorys?

><<Here's all you have to do to make use of this feature: put a file named
>".htaccess" in any directory on your site. Any attempt  <<access any file
in
>that directory will invoke the rules contained in the file. If the
referring
>URL is not listed in the file, <<the"RewriteRule" page will be sent
instead.
>A sample .htaccess file: RewriteEngine On RewriteCond %{HTTP_REFERER}
>!^http://one<<\.com/.*$ [NC] RewriteRule .* /hotlink.htm [L] This limits
>access to the files within this directory to pages called from the
<<one.com
>domain. If any other URLs try to access any file in the directory,
>http://one.com/hotlink.htm is delivered if the <<files is called directly,
>or an broken image will show if the link is inside a page.
>
><<NOTE: You need to have each dot (.) in your domain name written as \.
>otherwise the match won't happen. If you want to specify <<a specific page
>to allow access from, change the .*$ to the page you want to use (remember
>to change all dots (.) to \. to <<make it work. If you use the www prefix
on
>your domain name, add www\. in the RewriteCond.
>
>
>
>
>
>
>(http://forums.allaire.com/devconf/Index.cfm?Message_ID=676709)
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to