Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- open your .htaccess file its in your working directory of where kusaba is...
- at the top, simply put:
- Options –Indexes
- this disallows the directory viewing of all subfolders...
- so, what if you do want to allow directory browsing on one folder, and thats it? (dunno why you would, but ok!)
- just put a .htaccess file in that folder (make new folder, just call it .htaccess)
- and put :
- Options Indexes
- simple!
- (stop reading if you know what your doing, if you dont understand what i just said, then read on)
- so, say i have 3 folders, and in them 3 folders, i have 3 folders....
- these folders are nammed a,b,c, and inside them are 3 folders called 1,2,3
- if i place a htaccess file inside folder a, to block directory browsing, then it will apply for all folders inside that folder, (1,2 and 3)
- if i wanted to disallow browsing to 1and 2 but allow it for 3, inside folder 3, just place a htaccess file inside that folder saying "Options Indexes" to allow it for that directory
Advertisement
Add Comment
Please, Sign In to add comment