Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43260
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 278
Total: 279

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

0 Members and 1 Guest are viewing this topic.

Offline skip

  • Member
  • *
  • 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: 16436
    • 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

  • Member
  • *
  • 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
6227 Views
Last post November 13, 2008, 07:40:17 am
by SMFHacks
1 Replies
3370 Views
Last post May 18, 2010, 05:04:28 pm
by SMFHacks
3 Replies
4639 Views
Last post March 26, 2015, 06:12:35 pm
by SMFHacks
1 Replies
3674 Views
Last post April 26, 2017, 10:29:51 am
by nend
6 Replies
2650 Views
Last post July 25, 2018, 03:03:24 pm
by shuban

+- Recent Topics

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal