Skip to content

Instantly share code, notes, and snippets.

@ShubhamPy
Created December 21, 2020 18:08
Show Gist options
  • Save ShubhamPy/0ec312475f53a5bb17f20edd75498b8a to your computer and use it in GitHub Desktop.
Save ShubhamPy/0ec312475f53a5bb17f20edd75498b8a to your computer and use it in GitHub Desktop.
Finding common files in the webroot
First, find directory names for the webroot. This would typically be www or public or something like that. How can we recognize these? By the files they contain. If a directory contains favicon.ico or index.html or robots.txt, it is pretty likely to be a webroot. Especially for robots.txt, because that only works if it is served on the root of the server.
.gitignore or README.md
Some Directories paths:
public
web
static
app
assets
templates
docs
dist
www
src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment