Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

.htaccess security folder smarty folders

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
SGBoise
Smarty Rookie


Joined: 28 Mar 2008
Posts: 27
Location: GamePacks.org

PostPosted: Wed Oct 22, 2008 4:57 pm    Post subject: .htaccess security folder smarty folders Reply with quote

Hi guys,

I am going to add .htaccess with this code to the smarty folders in case someone of my clients have to put the smarty folder accessible from the internet. Also I added index.html to the folders.

Would you see a problem doing this? I don't want to this if it's going to break something in smarty.

<Files *>
Order Allow,Deny
Deny from All
</Files>
_________________
GamePacks.org - Products for the Arcade/Media Community
Video Script - The ultimate media site script
AutoVideoScript.com - Run your own youtube sharing site
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Oct 22, 2008 7:06 pm    Post subject: Reply with quote

That will keep all direct browser access out of the folder where that .htaccess file is. That is normally fine, so long as your initial index.php file is outside that folder.
Back to top
View user's profile Send private message Visit poster's website
SGBoise
Smarty Rookie


Joined: 28 Mar 2008
Posts: 27
Location: GamePacks.org

PostPosted: Thu Oct 23, 2008 12:17 am    Post subject: Reply with quote

Perfect. Thanks.
_________________
GamePacks.org - Products for the Arcade/Media Community
Video Script - The ultimate media site script
AutoVideoScript.com - Run your own youtube sharing site
Back to top
View user's profile Send private message
gnuffmaster
Smarty Elite


Joined: 13 Jul 2006
Posts: 440
Location: Düsseldorf, Germany

PostPosted: Mon Oct 27, 2008 12:50 pm    Post subject: Reply with quote

If you use .htaccess there, make sure you don`t have any data in there, which will be displayed by the browser (eg. images).
Back to top
View user's profile Send private message Visit poster's website
SGBoise
Smarty Rookie


Joined: 28 Mar 2008
Posts: 27
Location: GamePacks.org

PostPosted: Mon Oct 27, 2008 7:53 pm    Post subject: Reply with quote

I won't have any data files. I will also put index.html to prevent people browsing the directories.
_________________
GamePacks.org - Products for the Arcade/Media Community
Video Script - The ultimate media site script
AutoVideoScript.com - Run your own youtube sharing site
Back to top
View user's profile Send private message
gnuffmaster
Smarty Elite


Joined: 13 Jul 2006
Posts: 440
Location: Düsseldorf, Germany

PostPosted: Mon Oct 27, 2008 8:14 pm    Post subject: Reply with quote

You could also allow only special file types (like images) with .htaccess, but index.html does it in most cases. Or disable directory browsing server side.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP