Jump to content

.htaccess is driving me crazy!


chigley

Recommended Posts

Hey guys,

 

I hope you can help on this one. I want to block all users (except myself) from accessing all files in the public_html directory. I want anyone who isn't me to be shown a custom error (I assume the 403 error?)

 

The thing is, with my current code, it blocks everyone from viewing everything - including the 403 error page! How can I specify to block everything except 403.shtml?

 

My code is:

 

order deny,allow
deny from all
allow from 82.42.33.56
allow from 85.210.169.252

<Files 403.shtml>
order allow,deny
allow from all
</Files>

 

Thanks a lot,

 

Charlie

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.