If I have a directory structure like so
/ ├── home │ └── user │ └── test.js ├── usr │ └── bin └── var └── www └── index.html Putting aside folder permissions for the moment, if index.html had the following line
<script src="../../../home/user/test.js"> or
<script src="/home/user/test.js"> Would this be valid? If so, is there any way to prevent this so only nested folders can be reached (EDIT symbolic links must also be ignored)?