Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

How to Bring down the FTP site

Jun 5, 2011 6:41PM PDT

Hello to all,

I want to bring down my FTP site and when anybody login to FTP then he should be shown an message saying that " FTP work is currently in progress " so how should i do this ?

Discussion is locked

- Collapse -
Answer
Re: FTP
Jun 5, 2011 6:46PM PDT

I would just stop the server program and be happy with the clients getting the error message they get in stead of a custom error message like you prefer.

Kees

- Collapse -
Answer
Alternatively
Jun 5, 2011 6:52PM PDT
- Collapse -
I wonder if the ftp-protocol ...
Jun 5, 2011 6:55PM PDT

uses the same 404-page as the html-protocol. In fact, I doubt if it uses pages at all.

Kees

- Collapse -
May be so
Jun 5, 2011 7:01PM PDT

but would there still be some type of landing page? A modified version of that could be used as a 404 page.

Mark

- Collapse -
FTP doesn't work like that
Jun 5, 2011 11:08PM PDT

FTP doesn't work like that. Don't let the abstraction done by browser makers fool you into thinking it's ANYTHING like HTTP and loading web pages. They're two completely different protocols.

Generally speaking, without knowing which FTP program we're talking about though, it's impossible to give an answer, and by and large this isn't part of the FTP RFC, so anything beyond the RFC will likely limit the number of clients it works with.

Depending on how people login to this FTP server, you might be able to do something like Mark suggested. Assuming people come in via a web page link, you can just remove the link and say that the server is down for maintenance, then put the link back when done. If people are using an actual FTP client, then there's really nothing you can do. If the server is down, it's not going to accept incoming requests. When websites put up a "down for maintenance" page, they do so by loading it onto a secondary webserver. There's basically only an on and offline mode for servers, and if they're offline, they're not accepting any incoming connections, even to deliver some kind of "Down for maintenance" message.