Web Hosting Talk







View Full Version : another htaccess question


MGCJerry
03-17-2002, 06:26 AM
I searched... and searched... and found ways to block certain IP's and User Agents using htaccess... But how would I deny everybody but me?

I have a directory on my server that I dont want anybody but me in it. What would I put in an htaccess file to only permit me in that directory?

Thanks in advance :)

serve-you
03-17-2002, 06:31 AM
Something like this:
<Limit GET>
order deny,allow
deny from all
allow from 10.1.1.1
</Limit>

-Dan

MGCJerry
03-17-2002, 02:56 PM
Thanks.... works great :)