Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent directory listing #445

Closed
anonymous-matomo-user opened this issue Nov 27, 2008 · 4 comments
Closed

Prevent directory listing #445

anonymous-matomo-user opened this issue Nov 27, 2008 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

Hello,

Piwik doesn’t prevent listing of some key directories such as`
core/` or`
config/`. This could help identifying piwik’s running version.

Putting empty`
index.html` files in those directories solves the problem.

Thanks,
Olivier;

@matthijskooijman
Copy link

Isn’t this something that should be disabled in the webserver config instead? Any production server should have dirlisting disabled by default, though most shared hosters will probably not do this…

@mattab
Copy link
Member

mattab commented Dec 2, 2008

indeed. you can always add a .htaccess with “Deny from all”

@matthijskooijman
Copy link

If you really want to fix this problem, you should also make sure that files and dirs like README, tmp, tests, misc, etc. are removed as well. Even better, any php files that are not meant to be called directly (ie, anything but piwik.php and index.php I guess) should be outside of the document root as well.

Piwik might could make this setup easier by supplying a “htdocs” dir, which contains all files that should be in the document root. This will slightly complicate the default “put everything in the docroot” install approach (in particular, “htdocs” will show up in the url), but most of this should be solved by symlinking just index.php and perhaps piwik.php outside of the document root. The more advanced user can then just symlink only the htdocs directory into the documentroot (which contains index.php, piwik.php/js, robots.txt and the themes’ css and js).

Anyway, perhaps this should be a seperate ticket, if anyone cares…

@robocoder
Copy link
Contributor

Fixed in [1743].

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 0.5.5 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

4 participants