Directory Browsing returning blank page

KenticoAdmin AgFirst asked on April 13, 2020 23:19

Hi All,

Have multiple pages and templates. Everything works as expected. One common difficulty am facing is able to navigate to /CMSPages, /CMSTemplates and getting a blank page. i have directoryBrowse enabled="false" in web.config. how to prevent seeing blank page or routing user to mainpage incase of user directly going to directory.

Thanks Raj.

Recent Answers


Peter Mogilnitski answered on April 14, 2020 05:39

if you are using a portal engine, you can add these URLs as page aliases to your home page.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 15, 2020 20:36

If a user is attempting to manually navigate to the pages you specified, the 404 errors should pick up. If someone is "smart enough" to attempt to manually try to attack those pages, a blank page being returned should be fine as long as directory browsing is turned off. My guess is it's bots or some other crawler on the site looking for those URL's because you have them referenced somewhere in the rendered HTML.

In your Robots.txt, exclude both /CMSPages and /CMSTemplates.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.