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 - rejetto

Pages: 1 2 3 ... 843
1
Bug reports / Re: HFS needs restart
« on: November 17, 2023, 12:05:16 PM »
yes, you can do it externally.
I wrote some instructions about it https://github.com/rejetto/hfs#service
but you may prefer other methods https://www.google.com/search?q=run+program+as+service+windows&oq=run+program+as+service+windows
If people know better methods I will update the documentation.

At the moment there's no automatic service installation. Hopefully in the future.
HFS is now cross-platform, and making system dependent actions is harder for me.

2
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: November 16, 2023, 04:45:05 PM »
I would like to configure the program so that one specific agent can download

this is the server code:
exports.middleware = ctx => ctx.get('user-agent') === 'YOUR_AGENT' || ctx.socket.destroy()

this code check for exact text. Otherwise you can use, for example, ctx.get('user-agent').startsWith('YOUR_AGENT')

be careful, because this code can stop you from using your browser, and to recover you will have to edit file "config.yaml" with an editor

https://github.com/rejetto/hfs/wiki/Middlewares

3
sorry, i missed your post for long.
there's no automatic conversion, best way is to re-do the vfs by hand.
thanks for your contribution, i'll see to add it to next version.

4
Pусский / Re: Ищу адекватный шаблон
« on: November 15, 2023, 10:36:03 PM »
sorry I don't speak russian, but you may want to have a look at next version https://github.com/rejetto/hfs

video files are playable only for formats supported by the browser

5
HFS ~ HTTP File Server / Re: reCAPTCHA for hfs?
« on: November 15, 2023, 09:53:57 PM »
cool, Leo!
this is how it is done with HFS 3 instead: you put this line in "server code"

exports.middleware = ctx => ctx.host === 'mydomain.com' || ctx.socket.destroy()

i'm considering to offer this as an option

6
Bug reports / Re: HFS needs restart
« on: November 15, 2023, 09:44:12 PM »
see if this can workaround your problem with HFS 2
https://rejetto.com/forum/index.php?topic=9577.msg1054784#msg1054784

for HFS 3, "browser at startup" is an option you can disable.
The "powershell window" can be avoided by turning hfs into a Service, or using a utility like this https://github.com/benbuck/rbtray
The Service is the right choice for an always-running server.
Hopefully in the future I will make this easier.

7
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: November 13, 2023, 10:01:41 AM »
yes, plugins, but if you don't intend to distribut your scripts/changes, you can just use "custom html" and "server code".
It depends on what you want to do....

8
rejetto-crafted software / Re: refresh network list
« on: November 13, 2023, 09:36:57 AM »
much love guys ❤️

9
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: November 11, 2023, 05:36:06 PM »
consider helping with testing. You can enable Admin > Options > Update to beta
https://github.com/rejetto/hfs/releases/tag/v0.50.0-alpha2

10
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: November 09, 2023, 08:18:26 AM »
guys, initial I had planned to work on this after official release of HFS 3, but i opted to have something special to celebrate next release 0.50, nearing the 2 years anniversary (december 8 ).
hopefully... work in progress


11
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: October 31, 2023, 10:19:19 AM »
Still, attacks will slow down the performance of the system....

it is possible that most of these attacks get to you by scanning IPs, and don't know your domain.
You can block all requests that come without knowing your domain.
The easiest way is by using the vhosting plugin. Enter your domain with root "/", and enable "Block requests that are not using any of the domains above".
Let me know how it goes

12
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« on: October 30, 2023, 10:49:08 AM »
and I wanted to find out if I am blocking the ip address ranges correctly, for example 192.168.1.10-192.168.1.50?

yes, this syntax for ranges is supported since version 0.48
i'm going to update the documentation about this

13
HFS ~ HTTP File Server / Re: reCAPTCHA for hfs?
« on: October 21, 2023, 08:52:13 PM »
surely there is a way to do that, but i have no recipe.
i'm not sure if also cloudflare can help you with that.
one thing that can stop a lot of unwanted traffic (and i use it) is to have a domain (even a free dynamic dns service), and then stop requests that are done with just the ip.

14
i don't know how to help, i cannot work on 2.x anymore.
Maybe someone else on the forum can advice.
I'm working only on version 3

15
i'm not sure, you can try 2.4, you can see the download link on the right of the page https://rejetto.com/hfs/?f=dl

or you can consider version 3, which is very very different https://github.com/rejetto/hfs

Pages: 1 2 3 ... 843