4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Deny access to folder
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Iyonix
WebHelper
WebHelper


Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England

PostPosted: Tue Apr 08, 2003 6:13 pm (21 years ago) Reply with QuoteBack to Top

Hi,
I want to deny access to a folder called /stats/ on my site unless it is my IP address. I cannot put a .htaccess file in the /stats/ directory, so is it possible to do it from the directory a level up?

Thanks,

________________________________
Iyonix
OfflineView User's ProfileFind all posts by IyonixSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Tue Apr 08, 2003 6:15 pm (21 years ago) Reply with QuoteBack to Top

Code:
<Directory /stats>
deny from all
allow from 127.0.0.1
</Directory>


Something along those lines should work.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Iyonix
WebHelper
WebHelper


Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England

PostPosted: Tue Apr 08, 2003 6:17 pm (21 years ago) Reply with QuoteBack to Top

I just get Internal Server Error 500

________________________________
Iyonix
OfflineView User's ProfileFind all posts by IyonixSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Tue Apr 08, 2003 8:22 pm (21 years ago) Reply with QuoteBack to Top

Try replacing Directory with Location and adding a slash after stats.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.197711 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme