Skip to main content

Web question... 1515 Responses

Last post: 7 months, 1 week ago | Thread started: Apr 17, 08, 4:07 a.m.

RespondNew TopicDisable Images

  • Raniator

    You know when you type a web address that points to a path such as:

    www.example.com/images/march

    it is says "you do not have permission to view this virtual directory" or words to that effect...

    How can you make it say that?

    Apr 17, 08, 4:07 a.m. – Permalink
  • Raniator

    I don't mean the "not found" message...

    I mean is there a way of making directories that do exist unavailable to view by 'editing' the address and going back a couple of steps.

    I mayk senz, plees?

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:08 a.m. – Permalink
  • mistermik

    something about turning off the indexing in cpanel or somewhere else.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:09 a.m. – Permalink
  • blaw

    There are different ways to set the permissions, the easiest being setting them on the server via your hosting admin. Another route is to use htaccess.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:11 a.m. – Permalink
  • mikeim

    make a .htaccess file and put the following code:
    Options -Indexes
    in it and place in root of your web server

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:12 a.m. – Permalink
  • Fariska

    It's about the configuration of the web server.
    Just check the hosting plan (usually linux= apache and win=iis)
    i don't know about IIS too much, but on apache you need to edit the apache configuration file to do this kind of things
    Check on the relative websites for more instructions.

    • but first do the .htaccess thingFariska
    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:13 a.m. – Permalink
  • detritus

    It tends to be the default server setting for folders that don't contain some kind of index page - try deleting your index. html/htm/php/etc or renaming it from 'index'. But yeah, it's a server-side setting involving your .htaccess, as blaw points out.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:13 a.m. – Permalink
  • Raniator

    ok, thanks guys.

    i'll start with my control panel settings, .htaccess etc...

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:14 a.m. – Permalink
  • Corvo

    most servers are set to prevent directory listing, i think. To make it happen all you need is to delete the index.* page. in the directory.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:19 a.m. – Permalink
  • mistermik

    Index Manager in cpanel is your answer. no need to fuck around with .htacess files.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:20 a.m. – Permalink
  • Raniator

    what if i don't have an Index Manager?

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:21 a.m. – Permalink
  • detritus

    You need to dig around the FAQ/Knowledgebase/whatever of your web host and find out from them how you are supposed to amend your server-side details (.htaccess, or whatever). There's no single-way of doing it.

    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:24 a.m. – Permalink
  • Raniator

    names.co.uk

    • for no reason other than i got 50% off for the year and i can see their office out the window.Raniator
    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:30 a.m. – Permalink
  • crillix

    If you can't find a way to turn off the directory browsing you can always throw a blank index.htm, or whatever is the default, in the directory. It won't give a person an error but it won't let them browse the directory either.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:41 a.m. – Permalink
  • Raniator

    ok, nailed it.

    they have a htAdmin script that i've just installed which allows me to fuck around with .htaccess files, set custom error pages etc etc...

    so i put 'Options -Indexes' in the .htaccess file and everything is good.

    thanks guys, i've never have worked that out for myself :)

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:42 a.m. – Permalink
  • Raniator

    for example:

    www.steveranford.co.uk/stuff

    used to list the contents of the directory. now you just get that horrible error page. job done.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earApr 17, 08, 4:45 a.m. – Permalink

Login or Register to respond to this

Skip to main content