rejetto forum

Recent Posts

91
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« Last post by ALEX on October 03, 2023, 06:16:12 PM »
I Use HFS 3
92
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« Last post by ALEX on October 03, 2023, 06:15:32 PM »
there's no such feature in HFS 2, but i don't exclude that one could script it.
for HFS 3, i don't plan to add it, but one day we may have a plugin for it.

It’s just that every day they send me a DDoS attack, I set it to block agents, but all the same the requests will cause the server to freeze
because they do it from abroad,
so I wanted to know how to block by country
93
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« Last post by rejetto on October 03, 2023, 07:28:29 AM »
there's no such feature in HFS 2, but i don't exclude that one could script it.
for HFS 3, i don't plan to add it, but one day we may have a plugin for it.
94
HFS ~ HTTP File Server / blocking ip-addresses by country
« Last post by ALEX on October 03, 2023, 03:17:08 AM »
Can I block an entire country so that this country does not have access to hfs ?
or allow one country and ban the rest
95
HFS ~ HTTP File Server / Re: HFS Only one User Agent can Download
« Last post by ALEX on September 20, 2023, 08:34:11 AM »
Thanks Leo
96
HFS ~ HTTP File Server / Re: HFS Only one User Agent can Download
« Last post by LeoNeeson 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 (hfs.events). There add the following:

Quote
[request]
{.if|{.{.header|User-Agent.}!=ALLOWED_USER_AGENT_NAME.}|{:{.disconnect.}:}.}

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]
[request]
{.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.

Cheers,
Leo.-
97
HFS ~ HTTP File Server / HFS Only one User Agent can Download
« Last post by ALEX on September 19, 2023, 06:14:18 AM »
Hello. can somehow configure the program so that only one specific agent can load ?
98
HFS ~ HTTP File Server / Re: Embedding video from HFS to website
« Last post by nikster on September 13, 2023, 10:41:19 AM »
I found solution by using HFS3 with NoIP domain + purchased SSL certificate
I.e. HTTPS domain forwarded to my home IP via port 443

Unfortunately Wordpress plugins did not help in my case
99
router & port problems / Re: nginx 413 Request Entity Too Large
« Last post by rejetto on September 09, 2023, 09:36:26 AM »
this is a problem with nginx configuration (nothing really to do with hfs).
i'm no nginx expert but in the past i've already met and fixed this problem, but I can't remember, so: https://www.google.com/search?q=nginx+reverse+proxy+max+upload+size
100
HFS ~ HTTP File Server / Re: decodeuri doesn't always work correctly, how can I fix?
« Last post by rejetto on September 09, 2023, 09:30:55 AM »
this one works perfectly, thank you.
nice. btw, are you using 2.3 or 2.4?

Quote
Telegram - @rejetto ?
yes, if you'd like to use version 3 in the future, consider contacting me anyway, as I'm interested in understanding what are real customization needs, I'm still "shaping" version 3.