Web space?

Started by Noreen, Oct 22, 2007, 13:36:07

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

colirv

No probs. SmartFTP comes up with reminders occasionally that you're using an unregistered version, but doesn't mind you ignoring them.
Colin


drummer

I've been using FileZilla for FTP transfers lately it's not too shabby (plus it's open source).  :)

http://filezilla-project.org/download.php?type=client
To stay is death but to flee is life.

Simon

That's worth knowing about, Drummer. 
Simon.
--
This post reflects my own views, opinions and experience, not those of IDNet.

Rik

Useful link, thanks Drummer. :)
Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

Noreen

OK I've tried to set up my webspace and tried to transfer an image to it but at the address I get the IDNet logo and "Temporary holding page, content coming soon" and no image but with the ftp program I can access the image. What's wrong, in words of one syllable please.

Rik

Hi Noreen

Are you saying (I think you are) that you've uploaded an image, but when you go to your 'home' page you see nothing?

That's because the index.html file stops you browsing the page via HTTP, hence the reason you can see it with FTP. However, if you type the full url into your browser, including the file name (all case sensitive), then you should see the image.

The role of the index file is to create the 'browsed' page. The one which is there is just a placeholder.
Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

Noreen

#31
Thanks very much Rik, that was exactly the problem. I'm amazed that I've eventually managed to do this (with help). Have a karma.  :ty:

BTW I used http://www.goftp.com/

Rik

Thanks, Noreen. :)

If you delete the index.html file, when you go to the page, you will see the list of files there. You can prevent this by pasting the text below into Notepad, then saving it as index.html. Plonk this down on your page, or any folder you create below the base url, and people will get the message if they browse to your space. This allows you to upload photos and pass the URLs to people you want to be able to view them, whilst blocking the casual observer.

<html>
   <head>
      <title>No Browsing</title>
   </head>
   <body>
      <h1>No Browsing</h1>
   </body>
</html>


Nice find on GoFTP, btw. :)
Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

Noreen

Rik, am I right in assuming that each image that I post on my space has its own individual address and that is how it's accessed? If so I don't understand how anyone could browse through the images. Sorry to be so ignorant but I've searched online for web space for dummies advice with no luck.

Rik

Hi Noreen

Imagine your webspace as a folder in Windows. If you know the folder name, you navigate to it in Explorer, and the files will be visible. So, if you upload your photos to the root webspace, or a folder, if people know the URL (root or folder) then they can see the files.

However, if you put the index.html file in the folder, they will just see a message saying 'No browsing'.

Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

Noreen

Rik, I'm just not understanding this. If someone else can browse through my images on the web space, why can't I? Don't they have to know the "individual" address of each image?

Rik

If the images are browsable, Noreen, then anyone with the URL can browse them. If they are merely in your webspace (root or folder) but with an index.html file present, then they are invisible (unless the html file makes them so).

Would I be right in thinking that you've uploaded some images, and can see the files from your FTP client, but not from your browser? Do you see the placeholder message when you try and browse?

If so, that's just the index.html file doing its job.
Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

colirv

Noreen, there are really two approaches to this. The simplest one is the one to which Rik has alluded. Load all your photos into a sub-directory of your web site. Don't put an index.html file in this sub-directory. Give your friends the URL down to this sub-directory level. If they type the URL into their browsers they'll get a simple list of the photos there, and they can click on each one to see it. This will be pretty secure, as no stranger will know the name of the sub-directory - as long as you have some index.html file in the main directory to stop them browsing that and seeing the names of the sub-directories.

For a little extra effort use a programe like this. This will give you browsable thumbnails - for an example of this particular program in action go here. This took all of 2 minutes to put together and load on the web site.
Colin


Noreen

Rik I can see the images both through the program and on the web space but I can only see them on the latter by typing in the individual address for that image. Is that as it should be? Do you mean that someone else can browse through the images only by using a FTP program?

Rik

Hi Noreen

Things are as they should be. When you use FTP, you login to the space and are shown the contents. When you use a browser, you are not logged in and so, providing the index.html exists, you don't see the contents. However, if you know the full url (ie, including the file name), you can view the pics.

No-one else can browse, unless you give out your login details, using an FTP client.

As an experiment, create a new folder and copy some pics into it. Don't create an index.html file, then browse to the folder. You should then see a list of files. Create an index.html file and upload it to the folder, then browse to the folder again, and the files should have become invisible.

To make the pictures more readily accessible, use a program of the type Colin linked to, or the NVu program that IDNet recommend.
Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

Noreen

Thanks Rik, I think that I've cottoned on now. My poor old brain finds all this technology very confusing.

Rik

It's a bit of a conceptual leap, Noreen. Once you get the idea of what the index.html file does, it's easier to grasp.
Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

Noreen

More questions Rik, sorry. I don't really understand where the index.html that you gave me should go. In the FTP program there are two panes, the left one with my HD contents and the right pane showing the web space contents. Is it supposed to go in the web space pane and overwrite the existing index.html? What then happens to the contents of the existing index.html? Or have I got this completely wrong?

Also does this new index.html actually stop others browsing or just suggest that they don't?

Rik

Hi Noreen

You can leave the existing index.html in place, or replace it with the one I suggested. In either case, it needs to be in the webspace, root or any folder you create.

It stops browsing - the browser sees the index file and will display the contents and nothing else. It doesn't stop people guessing at file names, but they have to get it exactly right, case as well.

IMO, the best way is to create a sub-folder, with a mixed-case name, put any photos in there together with an index.html, and you have reasonable privacy. If you wanted absolute security, ZIP the files with a password and let your friends know the URL and password, they can then download and unzip to view.
Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

colirv

Noreen, just to give a little background, every web site has one or more pages (files, if you like). This page of the forum that you're reading is one such. Mostly the name of the page (file) will be "index" because that, according to worldwide rules, is the default file if you go to a directory on any web site. If that directory has an "index" file in it then that is what you'll see if you simply navigate to that directory. Generally the "index" file is there to provide content. If you look in the address bar at the top your browser now you'll see that this forum page is called "index", but it is index.php plus other stuff rather than index.html because it is written in a more complicated language and can do clever stuff. The principle, however, is the same.

Because browsers defaut to an "index" file in a directory if there is one, having one has a secondary use - it prevents people from seeing what other files you have in that directory. This is the use to which you are currently putting it. More often than not, however, "index" will contain a whole load of stuff, such as text and links (all the pages on my web site are called "index") and won't be there just to stop visitors browsing a directory.
Colin


Noreen

Many thanks for the help from both of you.

Rik

If you're still not sure of anything, Noreen, keep asking. My favourite word is why? That's closely followed by how and when! I drove my father nuts as a kid.  ;D
Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.