[chmod] Help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tw1st3d
    Confirmed User
    • Aug 2005
    • 106

    #1

    [chmod] Help!

    I want to denie /public_html/ only!... But if I put [CHMOD] 666 .. Then I am un able to view my documents/text files inside my directory! :/


    I don't want the public knowing what I have inside, but then again I want to be able allow access to specific material to the name I only know.....

    Hopefully you guys understand what I mean.
  • Lycanthrope
    Confirmed User
    • Jan 2004
    • 4517

    #2
    ummmm... you want only yourself to be able to access shit inside?

    .htaccess

    order allow,deny
    allow from yo.ur.ip.address
    deny from all

    Comment

    • Thumbler
      Confirmed User
      • Feb 2004
      • 4076

      #3
      Or you could use .htaccess to password protect the directory

      Comment

      • tw1st3d
        Confirmed User
        • Aug 2005
        • 106

        #4
        I don't want /public_html/ to be viewed online at all!.... I only want to be able to point to a file example /public_html/Wokring_Project.txt ... and only it be visiable online for other people.

        Comment

        • tw1st3d
          Confirmed User
          • Aug 2005
          • 106

          #5
          thread goes bumpy

          Comment

          • PolySix
            Registered User
            • Feb 2005
            • 19

            #6
            Originally posted by tw1st3d
            I don't want /public_html/ to be viewed online at all!.... I only want to be able to point to a file example /public_html/Wokring_Project.txt ... and only it be visiable online for other people.
            Just put a blank index.html under your web root.

            Comment

            • studiocritic
              Confirmed User
              • Jun 2005
              • 2442

              #7
              create ~/public_html/.htaccess
              put 'options -indexes' in the file
              254342256

              Comment

              • woj
                <&(©¿©)&>
                • Jul 2002
                • 47882

                #8
                public_html is meant to be viewable from the web, if you want to store some stuff non-viewable from the web, just creat a seperate dir for that...
                Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                Comment

                • tw1st3d
                  Confirmed User
                  • Aug 2005
                  • 106

                  #9
                  Originally posted by PolySix
                  Just put a blank index.html under your web root.
                  All right I did that. However, it does not find Index.html the main file to actiave it ones I type url : http://blahablahablh.com/~jussss/elite/

                  it brings me to the root directory of all the files which are located in /elite/

                  Comment

                  • LBBV
                    Confirmed User
                    • Aug 2002
                    • 936

                    #10
                    First of all, the reason you couldn't see your files when you did a "chmod 666" is that directories have to be executable or you will not be able to enter or access any files in them.

                    If I understand what you're requesting, you want the directory to be accessible to the web, but you want it so that you have to know the name of the file in order to read it. If that's the case, do this.

                    1. Set your directory to 755 (if you haven't already fixed that problem)

                    2. put a blank index.html in the directory (NOT Index.html...keep it all lower case)

                    3. As an added measure, as recommended above, upload (IN ASCII MODE) a .htaccess file in the directory (that's DOT htaccess) and in that file, put the following lines in it (use a text editor like notepad to create this file. Do NOT use Word or something similar)

                    Options -Indexes
                    DirectoryIndex index.html index.htm

                    Now, no one can view the files in that directory unless they know exactly what the file name is.

                    -- Bill
                    National Net Hosting. Handled.
                    See our new line of inexpensive Dedicated Servers | Cabinets starting at $795 | CDN
                    [email protected] | 888-4-NATNET | www.nationalnet.com

                    Comment

                    • tw1st3d
                      Confirmed User
                      • Aug 2005
                      • 106

                      #11
                      Originally posted by LBBV
                      First of all, the reason you couldn't see your files when you did a "chmod 666" is that directories have to be executable or you will not be able to enter or access any files in them.

                      If I understand what you're requesting, you want the directory to be accessible to the web, but you want it so that you have to know the name of the file in order to read it. If that's the case, do this.

                      1. Set your directory to 755 (if you haven't already fixed that problem)

                      2. put a blank index.html in the directory (NOT Index.html...keep it all lower case)

                      3. As an added measure, as recommended above, upload (IN ASCII MODE) a .htaccess file in the directory (that's DOT htaccess) and in that file, put the following lines in it (use a text editor like notepad to create this file. Do NOT use Word or something similar)

                      Options -Indexes
                      DirectoryIndex index.html index.htm

                      Now, no one can view the files in that directory unless they know exactly what the file name is.

                      -- Bill


                      Thanks you so much!.. the problem was that I put index.html with a capital letter!

                      Comment

                      Working...