Navigation
Last Seen Users
moss00:19:29
wepo02:23:13
samadi02:37:46
Mesue02:53:14
Agung Taufiq...03:05:08
max_og_mule03:31:41
Zombarxos04:25:54
Nighthawk-Inc04:39:55
fgjhxdf04:40:03
siwy199104:45:39

Members: 27,771
Newest: Mesue
Downloads v7
Downloads v6
One-click Translation
Translate This Site

Member Poll
Which version of PHP-Fusion are you using?

6.xx.xx
6.xx.xx
4% [20 Votes]

7.00.xx
7.00.xx
8% [39 Votes]

7.01.xx
7.01.xx
8% [42 Votes]

7.02.xx
7.02.xx
81% [417 Votes]

Votes: 518
You must login to vote.
Started: 26/03/2012 11:58

Polls Archive
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Connect via Facebook
Connect via Facebook
Our Coders
Shoutbox
You must login to post a message.

17-06-2013 04:03
info jadwal imsakiyah 2013 Thumb Up! semoga bermanfaat

16-06-2013 20:57

16-06-2013 20:56

16-06-2013 20:55

16-06-2013 20:55

16-06-2013 20:54

16-06-2013 05:39

16-06-2013 05:35

16-06-2013 05:25

16-06-2013 05:23

Shoutbox Archive
In memoriam

Nick Jones
1973-2011

Sponsors
Articles Hierarchy
How to Secure Your Important Files
Protect your config file with easy but effective protection. This method can be used to protect all your important files.



The config file is the file that stores your databases username, password, and all that other important information that you site uses to connect to the db. Even though the config file is a php file it doesnt make sense to not do anything about it. Open a existing .htaccess file or create a new .htaccess, do not put anything in front of .htaccess.

Add the following code to the .htaccess file to protect the config file from being access by anyone.

<Files "config.php">
order allow,deny
deny from all
</Files>


Now we are going to protect the .htaccess itself by adding the following code to the .htaccess

<Files ".htaccess">
order allow,deny
deny from all
</Files>


Try accessing the config.php file and the .htaccess file, youll end up getting a 403 Forbidden page instead of a blank white page.



Tutorial written by Brandon
7764
daftscouser on August 19 2009 15:59:33

Nice tut! Worked a treat.

Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 60% [3 Votes]
Very Good Very Good 0% [No Votes]
Good Good 20% [1 Vote]
Average Average 0% [No Votes]
Poor Poor 20% [1 Vote]