Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> .htaccess
kvarnerexpress
post May 6 2005, 07:55 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



hi,
i want to restrict certain files to be directly accessed in certain directories . These files are supposed to be included in other pages , but i want to restrict people just copy pasting their url's / copy shortcuts and paste them on the browser . is this possible by using .htaccess or something else ? I am on a shared hosting account of course and don't have root access . I would like to redirect the users / or simply restrict access to the file directly .
Go to the top of the page
 
+Quote Post
mbd5882
post May 6 2005, 09:56 PM
Post #2


Premium Member
********

Group: Members
Posts: 176
Joined: 26-April 05
From: Manchester
Member No.: 6,203



CPanel>Hotlink Protection>Enable

Input the addresses that the files can be viewed from. Just keep defult settings.
I think this only works on images, Yes-I think?

If you add another sub-domain, Stop it, Refresh, Start it again.
That new sub-domain is not included if you add it after you enable it.
Go to the top of the page
 
+Quote Post
clagnol
post May 7 2005, 10:22 AM
Post #3


Premium Member
********

Group: Members
Posts: 186
Joined: 3-April 05
From: Wichita, KS
Member No.: 5,194



QUOTE
Q. How can I make a directory not list certain files?

A. You'll need to add the following to your .htaccess file:

IndexIgnore *.gif *.jpg

To disallow Directory browsing all together, add this to your .htaccess file:

Options -indexes

To show files in a slightly more beautiful fashion:

Options +Indexes
IndexOptions FancyIndexing

Taken from this site. It doesn't specify, but the first command is only hides JPGs and GIFs. You can hide any kind of file, and if you want to hide specific files, just replace the "*.gif" and "*.jpg" with the file names.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Is Wildcards Allowed In Htaccess?(0)
  2. Help Needed: Rewritting Uris From .htaccess(0)
  3. .htaccess(3)
  4. Site Management Tools: Look Before You Leap!(3)
  5. Dynamic Signature - Yet Another Way To Do It(0)
  6. .htaccess Problem(2)
  7. I Need A Hand With Some Htaccess Login Stuffs!(0)
  8. How To: Change Your Website's Index File(18)
  9. Problem With Htaccess (i Guess)...(0)
  10. Path To /.htaccess Folder?(2)
  11. Renaming Your Url's(3)
  12. Using The Rewriterule(0)
  13. Can't Upload .htaccess And .mdu File...(5)
  14. [^] Need Help With Regex (for .htaccess)(2)
  15. .htaccess-style Login System And Php(13)
  1. .htaccess Override(6)
  2. I Need Help To Use Htaccess To Allow Only My Server To See A Directory(4)
  3. How To Modify .htaccess To Protect A Directory?(3)
  4. .htaccess Files Supported?(6)
  5. Mod_rewrite And Htaccess(5)
  6. .htaccess File In Hosting Space Modification(5)
  7. .htaccess Query(0)
  8. Htaccess To Block Bots(7)
  9. .htaccess Redirect Question(6)
  10. Need .htaccess Help(1)
  11. .htaccess?(4)
  12. .htaccess Charset Problem...(2)
  13. .htaccess(4)
  14. Is .htaccess Allowed ?(0)


 



- Lo-Fi Version Time is now: 5th September 2008 - 07:15 AM