Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Best way to restrict direct access to files and folders?
I need to prevent users from gaining direct access to directories or files, e.g. www.mysite.com/vanilla/applications/ or ...vanilla/plugins etc, but obviously still need the forum be able to run as an application as a whole.
I tried to add a .htaccess in each folder (applications, plugins etc), and add something like this (and other similar commands):
But it tends to break certain parts of the forum.
Could anyone recommended the best way to force 403 forbidden when a user is trying to directly access directories in Vanilla?
Also I dont want to use something as simple as IndexIgnore *, as this is not adequate because the file locations are easy to guess.
Thanks
I tried to add a .htaccess in each folder (applications, plugins etc), and add something like this (and other similar commands):
<Files *>
Deny From All
</Files>
But it tends to break certain parts of the forum.
Could anyone recommended the best way to force 403 forbidden when a user is trying to directly access directories in Vanilla?
Also I dont want to use something as simple as IndexIgnore *, as this is not adequate because the file locations are easy to guess.
Thanks
0
Comments
I can't explain why, but I've seen these 2 lines in .htaccess files for the same purpose as you request.
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
It came from this url:
http://www.htaccesselite.com/d/htaccess-errordocument-examples-vt11.html
AND of course information from WordPress:
http://codex.wordpress.org/htaccess_for_subdirectories
There was an error rendering this rich post.
Still need help with this one though:
http://vanillaforums.org/discussion/15129/how-to-get-start-a-new-discussion-button-to-appear-even-when-viewing-as-a-guests
I have written some of the mandatory things to do after installing Vanilla here.
There was an error rendering this rich post.
There was an error rendering this rich post.