Redirect 403 forbidden to 404 or home page

General support questions
Post Reply
prince.pbk@gmail.com
Posts: 9
Joined: 2017/02/24 03:04:19

Redirect 403 forbidden to 404 or home page

Post by prince.pbk@gmail.com » 2017/06/21 14:41:58

I have a web site on which pen-test is performed and it reported there are web pages that are forbidden .
since they use script "WSCHECK" to look for forbidden pages even if redirect the know forbidden pages to 404 also it will report as vulnerable .
how do redirect all forbidden pages to 404 or home page

using apache with php ,its a static web page

kindly help

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Redirect 403 forbidden to 404 or home page

Post by TrevorH » 2017/06/21 15:05:22

I'm not entirely sure how that would work. The prompt for username and password issued by your web browser depends on getting the 403 - if you change it to sending a 404 instead then it'll just report "page not found"
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply