Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12369
Latest: Dwaynee
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 40207
Total Topics: 7080
Most Online Today: 114
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 60
Total: 60

Author Topic: .htaccess for gallery folder  (Read 4211 times)

0 Members and 1 Guest are viewing this topic.

Offline skip

  • Newbie
  • *
  • Posts: 16
    • View Profile
.htaccess for gallery folder
« on: March 14, 2008, 07:26:24 pm »
Hi,

Should there be a .htaccess file within the gallery folder in order to prevent someone from accessing the gallery folder directly from a browser. ie. site.com/gallery  ??

I thought maybe a .htaccess with
<Files *>
   Order Deny,Allow
   Deny from all
   Allow from localhost
</Files>


But that doesnt seem to work.

Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15104
    • View Profile
Re: .htaccess for gallery folder
« Reply #1 on: March 14, 2008, 07:31:37 pm »
You can just make an index.php or index.htm file to override the directory listing
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline skip

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: .htaccess for gallery folder
« Reply #2 on: March 27, 2008, 06:16:27 pm »
Thanks, did that :)

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3862 Views
Last post November 13, 2008, 07:40:17 am
by SMFHacks
1 Replies
2252 Views
Last post May 18, 2010, 05:04:28 pm
by SMFHacks
3 Replies
3568 Views
Last post March 26, 2015, 06:12:35 pm
by SMFHacks
1 Replies
1935 Views
Last post April 26, 2017, 10:29:51 am
by nend
6 Replies
741 Views
Last post July 25, 2018, 03:03:24 pm
by shuban

+- Recent Topics

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Issues regarding Licenses and Domain by SMFHacks
April 28, 2020, 10:59:41 am

Powered by EzPortal