Thursday 18 September 2014

Security for online webfolders using .htaccess

Today we are going to tell you about .htaccess file, this is very basic thing to hide folder file lists by using htaccess, when we are holding some file in our website that files are listed as file in web folder. So that is hack-able by visitor or hackers, so we have to make secure our web folder files. for that we are going to use htaccess.

htaccess for web folder security


DOWNLOAD              LIVE DEMO

What is .htaccess.?
A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, that allows for decentralized management of web server configuration.

How to create htaccess file.?
open notepad --> type htaccess code in that notepad --> save the file as the extension of .htaccess. that file is called as htaccess file.

Here how security comes.?

Default file list type in web folder.

Default file list type in web folder.

like the above image the folder will show the files, So here we are going to disable the files. for that we are going to use the .htaccess file.

.HTACCESS
# Disable Directory Browsing
Options All -Indexes

after we use this above htaccess file the folder will be like,

Htaccess used folder view

Htaccess used folder view

i hope this post is useful to you, we will post some more details about htaccess in upcoming posts, keepin touch with us. thank you.



2 comments:

© All rights reserved @ 1next2.com