rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - LeoNeeson

Pages: 1 2 3 ... 56
HFS ~ HTTP File Server / Re: HFS Only one User Agent can Download
« on: September 19, 2023, 07:52:33 PM »
Welcome! :)

It's easy, just press "Alt+F6" inside HFS. That will create and open a text file ( There add the following:


Replace the text marked in red (ALLOWED_USER_AGENT_NAME), by the user agent you want to allow access, for example, if you only want to allow "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0", you would use this:

Code: [Select]
{.if|{.{.header|User-Agent.}!=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0.}|{:{.disconnect.}:}.}

Replace the text marked in green (request), by "download", if you want to allow file listing (to anyone), but block downloads that doesn't match the specified user agent.


HFS ~ HTTP File Server / Re: Embedding video from HFS to website
« on: August 01, 2023, 10:46:25 PM »
Hi! :) I will try to help you.

The possible reason of this, could be a 'Mixed Content Error', because WordPress is hosted (using) an HTTPS (Secure, port 443) connection, and your videos (hosted using HFS) are using an HTTP (Insecure, port 80) connection. Most browsers automatically block access to non-secure resources when they are loaded from a secure website (that's why you need to configure your WordPress). You will find a tutorial (Step by Step), on 'How to Fix the Mixed Content Error in WordPress' visiting this link HERE.

Please report back if that solves your issue (or if the problem continues).

If the problem continues, you will find more clues about this, opening your Browser's console, pressing: Ctrl+Shift+J (before the page loads, to get all the info), and the tab about Network activity. You can share your console (and those screens), here, to see if I can find the origin of your issue (take the screenshot AFTER the page was loaded completely).

Working with WordPress could be tricky, the best option would be using a hosting without HTTPS.


Bug reports / Re: A question about HFS v2.3m vulnerability
« on: July 26, 2023, 01:58:38 AM »
If I read it correctly, this is a DoS solution that can't deal real damage, such as remote code execution?
That's right, this is only a DoS issue, that could have a performance impact (it does NOT have a 'remote code execution' vulnerability). This was fixed in v2.4.0 RC1, so if you want to avoid this issue, you can use that version (or any other later version, like v2.4 RC07). HFS v3.0 is a new software, that has been totally rewritten from the ground up (it has nothing to do with the old code of HFS v2.x).

Which HFS version is more secure (2.3m / 2.4 / 3.0)? Logically, not the beta versions, but they may have some vulnernabilities patched, I guess.
About 'which HFS version is more secure', in terms of security, it is always best to stick with the latest available version (this applies to any other software too). But the decision is always up to the end user.

yes both are on the same pc and host os but i have found that using the lan ip works better than 127 even for local stuff but sadly no matter the proxy pass url it wont work
:-[ To tell the truth, I'm not an Nginx expert, so it's hard to tell you what the exact problem is (and why it doesn't work for you). Rejetto has released a Nginx package HERE (to have HTTPS support). You can try his package, or you can 'extract' the correct setting from it. I haven't tested it, but perhaps using it you could solve your issue. Unfortunately I have no other solution in mind. :-\

Hi, :)

If you are running Nginx on the same PC that runs HFS (along with it, on the same OS), then instead of using:

Code: [Select]
Use the following:

Code: [Select]
Check if this solves your problem (and then please report back the results here).

btw what does "Return to this topic" do?
If you check this when posting a new thread/post, instead of going back to the message index, you return to the topic (and see your new post).


Beta / Re: version 2.4
« on: June 17, 2023, 10:48:33 PM »
A few days ago, I've received a private message from "TEA-Time", and he said that my code posted previously here, takes effect even on links to folders too (it's true, I misinterpreted his original request). What he wants is just to open in a new tab/window, only the "URL type" of links (those you get by right-clicking on "Root ยป New link"). Having this in mind, please follow the very same given instructions, but then on step 5, paste the following text:

Code: [Select]
$("img").each(function () {
    if($(this).attr("src").indexOf('~img_link') > -1) {
         $(this).parent().attr('target', '_blank');

This is only valid for the default template of HFS (has been successfully tested with v2.4.0 RC6, RC7 and even with older v2.3m).

I hope that is useful... :)

Issues with HFS 2.4.0:

- when setting login and password, I can not access the files because of 'user not found' error (both login and password are correct)
- creating the user with access, no any login popup in Opera and Chrome (previous version worked fine)
Popup appearing in Mozilla only

Hi! :)

Friendly reminder: to make a proper (useful) report, we need the following...

1) Your exact version number (and build) of Chrome, Opera and Mozilla.
2) Your exact build of HFS v2.4.0 (there are many builds, latest is RC7).
3) Post a screenshot of the Browser's console (see instructions below)

How to open browser console:
> Launch the console using this universal shortcut: Ctrl + Shift + J
> Make a screenshot of the browser console, and post it here on the forum.

It's recommended to open the console -before- opening the URL. To do this, open a new blank tab, open the console, and load the URL of your HFS's server. Saying this, it's not guaranteed you get a solution (since HFS v2 development was discontinued, in favor of the new HFS3), but every issue/bug report is still appreciated, and perhaps we can help you.

Important detail: keep in mind that HFS v2.4.x have removed the 'traditional' login popup and replaced it with a modern login form (so, it's strange you still get it using Mozilla). Please add all the details listed above, to make this thread useful.


Bug reports / Re: Bug: Logout function at server level [Fixed]
« on: April 24, 2023, 10:36:26 AM »
Leo, hello!
There is a problem: If you log in locally, then the authorization form works fine, but if you access HFS from outside, via the Internet, the authorization form does not work, it does not respond to login / password. Please help me figure it out.
Hi! and welcome... :)

Sorry for my late reply (I've received your private message)

Your message doesn't say what version are you using, but please make sure you use latest v2.4 (or the new HFS3). The default template of HFS v2.x depends on jQuery to work, and some older templates (based on versions older than HFS v2.3f), were using an external CDN for jQuery. Since you say it works fine locally, perhaps 'something' is blocking or interfering with the access to jQuery (and therefore, affecting the login). Sadly, I could not give you more ideas than that. I currently don't have time to deal with complex issues, but if you add much more details, perhaps we could possibly have more idea of what is causing your issue (but I cannot promise to solve it).

For as much as I would like to help people, please consider this thread closed, since it was a technical discussion to implement the logout system, which was already added on HFS 2.4. Your issue is about the login, not logout anyway (in that case, is much better open a new thread, along with more details).


router & port problems / Re: problem when enabled two adapters
« on: April 15, 2023, 05:48:25 AM »
DMZ doesn't magically open ports for 2 network adapters, only one. DMZ should pass (open) all traffic for only ONE IP address (let say, and that should be configured on your router (check there what IP you assigned as DMZ). Then I assume is the IP from your second adapter. HFS perhaps is 'switching' to your second adapter (and that's why it fails on being reachable from the outside). You need to choose (select) in HFS the IP assigned as DMZ (in your case, I guess is If that fails, then your last option is making a 'bridge' between your 2 network adapters on Windows. You can follow THIS steps to make the bridge, but I can't guarantee it will work (you have to test it). Versions of "HFS SSL by SilentPliz" were based on the development of HFS 2.3x (which was discontinued), that's why if some bug arises, we all depend on the community collaboration to make fixes. That said, try making a 'bridge' between your 2 network adapters and please comment here if it worked or not. :)

HFS ~ HTTP File Server / Re: Adjusting column width in version 2.3m
« on: April 07, 2023, 03:28:56 AM »
I want to adjust the width of the column called "Name .extension". Need it to be a little wider so that the file name, if long, does not show up as two lines, rather just one line. Where do I edit the HTML to do that, if possible? Thanks.
Hi!, :) just follow these steps...

1) Press F6 to edit the template

2) Find the following line:

Code: [Select]
#files tr td:first-child { text-align:left; }
3) Change it with the following:

#files tr td:first-child { text-align:left; overflow:hidden; word-wrap:normal; white-space:nowrap; text-overflow:ellipsis; max-width:300px; }

(The text marked in red color is the addition)

This is just an example, it's up to you adapting to your needs (you need to have some CSS knowledge). The above code, is ONLY valid for the default template of v2.3m!

Hope it helps!

HFS ~ HTTP File Server / Re: Documents view in browser
« on: April 05, 2023, 12:22:15 PM »
Looking in the sources of this extension, I've found it includes 2 types of MIME for XLS.

Try to use the following MIME (when doing these steps), for the XLS:


Change "application/" to "application/msexcel"
If that doesn't work, then I had no idea on how to solve this, sorry... :-\

HFS ~ HTTP File Server / Re: Documents view in browser
« on: April 05, 2023, 10:18:46 AM »
Yes, almost all documents now open in the browser.   :D  Only XLS keeps downloading
I'm glad you almost got everything working. :D

Give me some time, to try to solve the XLS problem...

Bug reports / Re: Stuck when is downloading.
« on: April 05, 2023, 10:05:15 AM »
Yes, I have read that they are developing the other one and it is great, but it does not have an option that I really like in 2.3, which allows you to copy the download link with the username and password included, or at least I have not found how to activate that option, example

What happens with my current 2.3 is that for some reason there are many people downloading, it stops and then you have to restart it, I don't understand why.
You are right, HFS3 will probably never have that kind of login style, since it's considered deprecated by today's web standards (and passing Basic Authentication parameters in URL, is not recommended). Perhaps Rejetto could add a similar scheme in HFS3, in the style of:
(but anyway, this kind of authentication is not considered secure)

Thank you and sorry for not posting the data

Intel Xeon CPU E3 1273 V3
1Gbps Up/Down
Windows server
Thanks for your reply. When you say HFS "crashes", I assume that it closes it's self (something different than "hanging up" or "freezing"). If HFS closes its self, as workaround you could try using WatchCat (which automates the process of restarting HFS, if it closes or if stop responding).

HFS ~ HTTP File Server / Re: Documents view in browser
« on: April 05, 2023, 09:42:15 AM »
In the HFS3 being developed, there are no problems with opening. This version has an Open menu
If it works when using HFS3, then we could make it work with HFS2.
Your last message reminded me a very important step that I've forgotten.

Please try this:

1) In HFS press F5 to switch to expert mode (if you are not already using it).

2) Go to: Menu > Other options > Open directly in browser...

It opens a window, showing this list:

Code: [Select]
Now, add to the end of that list the following:

Code: [Select]
Or replace all the text with this:

Code: [Select]
Please report if that solves your issue or not.
(and sorry for my forgetfulness)

Bug reports / Re: Stuck when is downloading.
« on: April 04, 2023, 09:22:54 AM »
Hello, when there are several people downloading on my server, HFS crashes and I have to restart, what can I do to avoid this?
Hi and welcome. :) Please, always remember to give more information, like what exact version of HFS are you using, your operating system and amount of RAM memory. Although I can't promise any fix (since HFS v2 development was discontinued), it would be useful if you can report what kind of error HFS gives when it crashes.

If you use Win10 or later, it's known that some users already reported similar issues when using HFS v2.3x and v2.4x. That's why Rejetto started working on the new HFS version 3 (at least for modern OS, it's recommended to use HFS3).

Pages: 1 2 3 ... 56