Custom 403 Page Problem

I’m trying to display a customised 403 error for a specific user that i’m particularly sick of. I want it to refer to him by name, as well as a personal message as to why he’s been banned.

Right now my code is:

ErrorDocument 403 /errors/blocked.php
Order Allow,Deny
Allow from All
Deny from x.x.x.x

However, it is unable to find this error message and just gives a general generic apache 403 message.

HOWEVER, i know the file is there, because if i preface it with

<files index.html>

the it blocks access to “index.html”, but then allows it for all other files.

If anyone can help me straighten this out, i’d appreciate it!


You just denied access to the entire site - including the custom error pages! Oh, and you were so close to figuring that out for yourself too with that Files directive.

You need another .htaccess file. And it needs to allow access. And as an exercise for the reader, I’m sure you know where this .htaccess file should go. And next time don’t forget to check your error.log for error messages from Apache, it would have said something like:

:cool: [color=#6600CC]Atropos[/color] |