rejetto forum

Recent Posts

91
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« Last post by ALEX on October 04, 2023, 03:24:04 AM »
i took note, but i won't make it soon.
if you know programming you can make it yourself

No, i Can't
92
HFS ~ HTTP File Server / Re: blocking ip-addresses by country
« Last post by rejetto on October 03, 2023, 06:21:53 PM »
i took note, but i won't make it soon.
if you know programming you can make it yourself
93
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
94
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
95
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.
96
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
97
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
98
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.-
99
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 ?
100
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