Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24
  1. #1
    Senior Member Zboost's Avatar
    Join Date
    Apr 2011
    Location
    Houston
    Posts
    246
    Member #
    27459
    Liked
    20 times
    Hello guys, have not been around much, a lot going on. :frantic:

    I've been doing some coding and one thing I am trying to figure out and I can't for the life of me is how to make access to directories and it's files forbidden. I have tried .htaccess methods, but here is the thing. All I have to do is create a text documents and write, "<a href="URL TO FILE I SHOULD NOT BE ABLE TO ACCESS!">Link</a>, and Voila! Right Click, Save-As and the file is mine... I would put files outside of accessible area, but stupid host does not provide access outside web root. Any comments, tips, or ideas would be great. Thanks guys!

  2.  

  3. #2
    Senior Member Zboost's Avatar
    Join Date
    Apr 2011
    Location
    Houston
    Posts
    246
    Member #
    27459
    Liked
    20 times
    Stupid me, after downloading the files, I did not actually try and read them or open them, so I assumed the code would be accessible. Feel free to crack jokes! ops:

  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,716
    Member #
    5580
    Liked
    718 times
    Let's go back to the "access outside of root" ...

    Do you mean you can't create any other directories?


  5. #4
    Senior Member Zboost's Avatar
    Join Date
    Apr 2011
    Location
    Houston
    Posts
    246
    Member #
    27459
    Liked
    20 times
    Yes, the public root where your visitors end up, or var/www/ I think is the usual name. That is the only directory I have access to. So I cant put files outside that root to keep from being accessed as far to my understanding thats what I would normally do. Maybe I am misunderstanding.

  6. #5
    Senior Member Zboost's Avatar
    Join Date
    Apr 2011
    Location
    Houston
    Posts
    246
    Member #
    27459
    Liked
    20 times
    I can create other directories, just nothing outside public access.

  7. #6
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,716
    Member #
    5580
    Liked
    718 times
    Does you webhost have a website control panel?
    If you view your website files using cpanel (or whatever they call it),
    you'll have the ability to add new directories, and set permissions (CHMOD).
    You can also elect to eliminate hot-linking, and don't allow any directory
    to be viewable without an "index" file (index.php, index.html, index.htm).

    All of those configurations are done using cpanel.


  8. #7
    Senior Member Zboost's Avatar
    Join Date
    Apr 2011
    Location
    Houston
    Posts
    246
    Member #
    27459
    Liked
    20 times
    Ya that's what I was tring to do, and I did not want anyone to access files outside my index or public folder. I was able to hot link my php config files, but the code is not viewable I guess that's fine as long as no data is shown. Ill try the cpanel, I don't think it has one that I know of, ill check it out.

  9. #8
    Banned
    Join Date
    May 2011
    Location
    Fairfax, CA
    Posts
    2,036
    Member #
    28003
    Liked
    126 times
    I'm surprised you can't just do this from your control panel. I know cPanel (a very popular one) has an option to do this very easily, no coding required.

  10. #9
    Senior Member Zboost's Avatar
    Join Date
    Apr 2011
    Location
    Houston
    Posts
    246
    Member #
    27459
    Liked
    20 times
    Doesnt have a control panel it seems

  11. #10
    Banned
    Join Date
    May 2011
    Location
    Fairfax, CA
    Posts
    2,036
    Member #
    28003
    Liked
    126 times
    Who is your hosting provider?


Page 1 of 3 1 2 3 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:31 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com