Forum Moderators: phranque

Message Too Old, No Replies

.htaccess help for a newbee

         

Brutus

7:53 am on Jul 20, 2003 (gmt 0)

10+ Year Member



Hi Guys
I am very new to .htaccess and need some help.
I am trying to deny access to a specific directory from all who are not accessing from my own site. I entered the following .htaccess file in the correct directory.

<Limit GET>
Order Deny,Allow
Deny from all
Allow from mysite.com
</Limit>

Unfortunately this denies access for everyone.
Any advice would be greatly appreciated.

Brutus

keyplyr

10:37 am on Jul 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi Brutus, Welcome. If you don't get any solutions here, you might try in the Website Technology Issues [webmasterworld.com] Forum. Most .htaccess questions are posted there.

<added> You might try this (I have not tested it and am only assuming it will work)

SetEnvIf Referer ^http://.*\your_domain\.com ok
<Files *>
order deny,allow
allow from env=ok
</Files>