Is it possible to style an ftp site () ?

I've done a bit of googling, but i am only finding results for StyleFTP client :P

Thanks

marky

Dani AI

Generated

Short answer: you cannot reliably style an ftp:// directory listing with CSS. The listing you see is produced by the FTP server and rendered by the client (browser or FTP app), not by an HTML page you control, so client-side stylesheets do not apply.

As asked and as pointed out, there are practical alternatives:

  • Put a real HTML index (index.html) in the directory and upload it. Some clients will render that file if you request it directly, but behavior is inconsistent across clients and browsers.
  • Serve the files over HTTP/S instead. That gives full control: HTML, CSS, headers, and templates.
  • Run a small HTTP proxy or script that reads the FTP directory and emits a styled HTML listing on the fly.

If control of the server is possible and you run a web server, use its directory-listing features to insert header/footer HTML or templates (for example, Apache mod_autoindex supports header/footer files and fancy indexing). See the Apache mod_autoindex documentation for details: Apache mod_autoindex.

Cautions: browser and client behavior varies and some modern browsers limit or remove FTP browsing. For consistent, styled output, publish via HTTP/S or generate static HTML pages and serve those instead of relying on raw FTP directory listings.

Recommended Answers

All 2 Replies

Your link does not work.

.. i know.. it was an example. just any ftp:// site.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.