Find answers, ask questions, and connect with our
community around the world.

Forums Forums Web Design Is it bad practice to expose the public/static content directory?

  • Is it bad practice to expose the public/static content directory?

    Maverick created 1 day, 21 hours ago 0 Member · 1 Post
  • Maverick

    Member
    October 12, 2019 at 10:17 pm

    Hello I’m writing up a backend for a basic website file server. I’m serving all the public files from a ‘static’ directory, for example: /static/index.html /static/css/styles.css Currently, when visiting the /static/ directory itself, the contents of the directory is exposed. Like so: https://i.redd.it/pwnylhzl58s31.png I figure since all of these files are public anyway, it doesn’t make a difference for them to be exposed like this. But is it bad practice? I’ve seen some websites send a 403 Forbidden or a 404 Not found instead. Should I do the same? Thanks in advance – by hq overview _barjo – –

Reply to: Maverick
Your information:

Cancel
Original Post
0 of 0 posts June 2018
Now