May 17 2012 11:54:49
Navigation
Last Seen Users
J_K_NIELSEN00:31:25
volt12300:59:39
darans00:59:56
Acert01:33:48
michi01:57:18
LukeWarm02:01:20
Dave9202:39:24
KasteR02:43:14
colber03:00:52
rubberdark04:07:53

Members: 25,040
Newest: Dave92
Downloads v7
Currently popular Downloads

FusionBoard 4 6351
Video Gallery 4524
Video Infusion 4019
Photoalbum Mass U... 3499
Professional Down... 3403
Avatar Studio 3338
XHTML mod for mod... 3186
Button panel 2703
60 Animated smileys 2610
VArcade 2.1 2532

Latest Downloads


Code Snippets v1.10 8
Video Infusion Pro 84
Who Is Where 16
Facebook Login/Register 62
Yolks Smiley Pack 56
SWTOR Recruiting Panel 25
NeoBlog Theme 28
Code Snippets 9
FAQ Panel 15
Download Plus Panel 32

Latest 100
Downloads v6
Currently popular Downloads

Banner System v2.0.4 2269
Video Gallery 1560
Extreme Theme Editor 1257
Fuzed Shoutbox 1066
Seoname.php 1016
Icon Package 2.0 879
Extended Profile ... 782
News.php 699
Tabbed welcome panel 646
EXTboard 583

Latest Downloads


Banner System v2.0.4 2269
Last comments 102
Language switcher panel 319
Admin Submission Panel 130
Admin private messag... 253
Google Sitemap Fast 144
ExtBoard 1.2 430
EXTboard 583
v6.01.18 - v6.01.19 74
v6.01.19 FULL 240

Latest 100
Latest Articles
Patch Re-captcha PHP...
A tour through the n...
Protect your Fusion ...
Change your database...
Admin Control Panel ...
How to Secure Your I...
Show Content by Defa...
v7 | Add social book...
v7 | Custom MySQL er...
How To: A PM after r...
v7 | SEO friendly UR...
v7 | SEO friendly UR...
Comments Advanced Vi...
Auto-redirect to the...
A tour through PHP-F...

View all articles
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
Comments
#1daftscouser on August 19 2009 10:59:33
daftscouser
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]
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Our Coders
Netrix
Smokeman
Elyn @ MrRusty
Diemux
Donate
Shoutbox
You must login to post a message.

17/05/2012 00:59
spam cleaned up

16/05/2012 05:55
I deleted forum posts but I don't have user banning or shoutbox editing permission or I would take care of those too...

15/05/2012 02:33
andredrake , Silvie Spam!! Confused perde

03/05/2012 22:00
El-nino.ugu.pl <---- Fanpage Fernando Torres PL / ENG

03/05/2012 21:34
Hi, everybody, it's been a while, since I was here...

01/05/2012 06:13
Bye!hi

28/04/2012 08:35
tomeck there is one in the downloads here check it out

23/04/2012 07:03
This is the theme of the site joga the theme of perde perde

22/04/2012 16:12
Hello, i need facebook login for fusion 7.01.5 can you help me ? Thumb Up!

21/04/2012 11:05
How i can disable the right click option in all pages over the site?

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









You must login to vote.
Advertiser
One-click Translation
Translate This Site

Online Stats
Guests online: 6
Members online:
no members online


registered members: 25040
newest member: Dave92

user today: 3703
user online: 6
Max. onlinerecord: 86
Max. per day: 32490
user yesterday: 4992
user month: 137532
Entire users: 3839415

last 24h:
























In memoriam

Nick Jones
1973-2011
Render time: 1.77 seconds - 89 Queries 17,998,788 unique visits