Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12387
Latest: Altha
New This Month: 11
New This Week: 3
New Today: 0
Stats
Total Posts: 39888
Total Topics: 7022
Most Online Today: 78
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 51
Total: 51

Author Topic: .htaccess for gallery folder  (Read 4130 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: 14953
    • 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
3758 Views
Last post November 13, 2008, 07:40:17 am
by SMFHacks
1 Replies
2213 Views
Last post May 18, 2010, 05:04:28 pm
by SMFHacks
3 Replies
3342 Views
Last post March 26, 2015, 06:12:35 pm
by SMFHacks
1 Replies
1847 Views
Last post April 26, 2017, 10:29:51 am
by nend
6 Replies
563 Views
Last post July 25, 2018, 03:03:24 pm
by shuban

+- Recent Topics

prettyurls - TroubleShooting.wiki by Rock Lee
October 10, 2019, 11:37:09 am

Some issues with adding and editing a listing by ajac63
October 07, 2019, 04:16:40 am

Problem update 1.1.21 to 2.0.15 by Rock Lee
October 06, 2019, 06:09:16 pm

[Mod]SMF 2.0.x PHP 7.2 Support by sah62
October 04, 2019, 01:46:00 pm

Ideas by shuban
October 03, 2019, 10:19:06 pm

How to space icons and multiple reacts? by shadav
October 03, 2019, 04:20:07 pm

PrettyUrls SEO Pro by Rock Lee
October 01, 2019, 09:09:38 am

How to get search preciser by SMFHacks
September 23, 2019, 10:09:56 am

How to AVOID SEO Hit when Implementing PrettyURLs by SMFHacks
September 12, 2019, 08:50:42 pm

theme by SMFHacks
September 12, 2019, 07:10:51 am

Powered by EzPortal