Forum Moderators: phranque

Message Too Old, No Replies

Anyway to return have HTACCESS to return 200 after 403 block?

         

brand404

1:32 am on Apr 23, 2010 (gmt 0)

10+ Year Member



I am using htaccess to block an ip address via the "deny from #.#.#.#"...i also use the "ErrorDocument 403 /page.htm" to show the user a different page. However, when i do this the user gets back a 403 status code...is there a way to return back a 200 status code and still show the page....ideally i dont want the user to get back a 403 status code when the page content is returned.

Thanks

jdMorgan

3:31 am on Apr 23, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd like to ask why you might want to do this, especially since it may affect the recommendations you might get here.

You can't return a 200-OK using mod_access, but other solutions may be usable -- It depends on what problem you are trying to solve.

Jim