Forum Moderators: open

Message Too Old, No Replies

allowing 403 page to denied IPs

         

nancyb

7:19 pm on Jul 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From this old thread [webmasterworld.com]

RewriteRule!^403.*\.html$ - [F]

Note that any User-agent is allowed to access my custom 403 pages - it's only fair...

I noticed that the rewrite rule for the 403 page was inserted after each "block". I only have it once in htaccess (and it's n ot working). Is there a sequence I missed following or does this need to be included after each type of deny, block, rewrite condition.

Sorry to be such a pest, but for all my reading, I can't seem to get this rewrite stuff through my thick skull.
Thanks

wilderness

8:08 pm on Jul 29, 2003 (gmt 0)

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



In the old thread you referenced too it requires the 403 line twice, because they are two separtate "blocks."

If you have other "blocks" for the application of rewrite conditions written to work with 403 pages? Than those blocks would require the 403 line as well.

Any place in your htaccess which requires closure with
"RewriteRule .* - [F]" or "[F]" could potentially use the 403 page rule.

nancyb

10:01 pm on Jul 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'll go back and re read about [F] and closure. I'm not sure I even used those where I was supposed to.

Thank you wilderness, that'll get me started again!

wilderness

10:06 pm on Jul 29, 2003 (gmt 0)

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



Nancy
This is a good example:
[webmasterworld.com...]

There are five potential applications of the 403 page in the five separate "blocks."

nancyb

10:40 pm on Jul 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thank you, again. I don't know how I missed seeing your post earlier since I've been monitoring forum11 so I could learn more. I'll go study :)