I am writing a local HTML file as a catalogue for a drive. I want to make the file names clickable but the file:/// href is blocked. Is there a work around
I'm using a HTML file as a hypertext that catalogues a hard drive or folder. I want the file names to be clickable--to open the file, but but the file:/// href is blocked. What is the work around. All of this is local
Todas as respostas (1)
Firefox blocks file:// links from websites (including local HTML files) as a critical security measure.
You can make your file clickable by
1. install a Firefox extension, for example, Local Filesystem Links file:/// will find you file 2. start a local server, for example open a terminal, go to your file folder, run python3 -m http.server 8000 http://localhost:8000/your-file.html will be your file, not file://