Jump to content
[[Template core/front/custom/_customHeader is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

in need of a webmaster


theeohiostate
 Share

Recommended Posts

Need help to restrict access to a directory of files, but also allow access to the flies within them , so they are visible if hotlinked

 

 

example of what i want

 

Allow

 

Not Allow

 

Reason why these need to be in the same directory? Otherwise, just change the read permissions on the directory you don't want open.

 

Here is a good page for UNIX permissions setting.

 

http://www.albany.edu/faculty/gms/homepage...ermissions.html

Link to comment
Share on other sites

Need help to restrict access to a directory of files, but also allow access to the flies within them , so they are visible if hotlinked

 

 

example of what i want

 

Allow

 

Not Allow

 

In the apache config file (usually located at /etc/httpd/conf/httpd.conf) there's a directive in there that will allow directory listing.

 

Do a google search for "apache directory listing" as I can't remember it off the top of my head. That should take care of it.

 

ETA: Forgot to mention that once edited, you'll need to restart apache. The command should be apachectl -k restart.

 

 

ETA 2: I forgot, you could also just add a blank index.html page to that directory. The file must be named index.html (or whatever the default filename that is set in apache is)

Edited by BiggieFries
Link to comment
Share on other sites

In the apache config file (usually located at /etc/httpd/conf/httpd.conf) there's a directive in there that will allow directory listing.

 

Do a google search for "apache directory listing" as I can't remember it off the top of my head. That should take care of it.

 

ETA: Forgot to mention that once edited, you'll need to restart apache. The command should be apachectl -k restart.

 

 

ETA 2: I forgot, you could also just add a blank index.html page to that directory. The file must be named index.html (or whatever the default filename that is set in apache is)

 

 

 

I just created a blank index.htm file............right before I saw your edited post, lol. That will restrict public view of directories when tracing back image urls I post

 

Thanks for the help guys

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information