|
Author |
Message |
Iyonix
WebHelper
Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England
|
Posted:
Tue Apr 08, 2003 6:13 pm (21 years ago) |
|
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 |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue Apr 08, 2003 6:15 pm (21 years ago) |
|
Code: | <Directory /stats>
deny from all
allow from 127.0.0.1
</Directory> |
Something along those lines should work. |
________________________________
|
|
|
|
Iyonix
WebHelper
Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England
|
Posted:
Tue Apr 08, 2003 6:17 pm (21 years ago) |
|
I just get Internal Server Error 500 |
________________________________ Iyonix |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Tue Apr 08, 2003 8:22 pm (21 years ago) |
|
Try replacing Directory with Location and adding a slash after stats. |
________________________________
|
|
|
|
|
|
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.15513 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |