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

Pages: 1 2 3
HFS ~ HTTP File Server / Re: Hide TIMESTAMP column
« on: February 14, 2022, 04:36:51 PM »
how ?

HFS ~ HTTP File Server / Hide TIMESTAMP column
« on: February 13, 2022, 11:26:21 PM »

Any way to hide the timestamp column?

I can't find a way to do it anywhere

HFS ~ HTTP File Server / Re: Ban IP using cloudflare
« on: February 11, 2022, 01:28:21 AM »
Your best option is to allow not * but just the IPs of cloudflare.
You can learn how to enter a filter different than * with this guide:

the bad thing is that cloudflare uses many ip.

in the browser and by cmd are always two.
But in HFS it identifies several totally different

enter hfs various ranges, sometimes it works, and sometimes it doesn't, as other different ranges reappear.

forwarded-mask=* This configuration is the one that has worked best, except when they enter through the tor network, here it returns again to register the cloudflare IPs.

The issue is now clear.

Thank you very much for your great collaboration.

HFS ~ HTTP File Server / Re: Ban IP using cloudflare
« on: February 09, 2022, 07:17:48 PM »
Method 2) there's a scripting command to modify configuration via scripting. So as you can go Menu > Debug > Run script
and there run this small script
{.set ini|forwarded-mask=*.}

The script does not do what it is supposed to do.  What will be the reason?

Method 1) you'll edit the hfs.ini with notepad. Be sure first to quit HFS first.

This one works fine.

so, HFS already supports reverse-proxy but by default it's limited to localhost for security reasons.

the part is not clear to me: "limited to localhost for security reasons"

you mean you can only login from localhost, and do not enter externally ?

HFS ~ HTTP File Server / Re: Ban IP using cloudflare
« on: February 09, 2022, 03:25:23 PM »
ciao Sergio,
ot may help to know what you did to configure HFS for cloudflare.
I've never used cloudflare myself, so i hope someone could help you.

I have a .com domain.
in the control panel of my domain, I configure the cloudflare NS.
in cloudflare configure 2 records of type A that point to my Public IP.
This way I hide my public IP.

Whoever enters my hfs through the url of my domain, will never know my true public IP, since it will show them the cloudflare IPs.
in this way it was left behind a proxy.

In my local apache server I had the same problem, and the solution is to enable the remoteip module, and add a line in the httpd.conf file that is this:
 RemoteIPHeader X-Forwarded-For.

But in HFS I don't know what configuration to do to solve the problem.

HFS ~ HTTP File Server / Ban IP using cloudflare
« on: February 09, 2022, 12:29:07 AM »

I have my HFS running on my local network under cloudflare.

But the problem occurs when I decide to ban an IP. Since it does not do the IP ban. This is due to HFS being configured with cloudflare

What configuration must be done in HFS so that it allows me to do IP banning?


PD. If HFS is not configured with cloudflare, IP ban works fine.

HTML & templates / Re: Simple contact template
« on: March 25, 2019, 02:42:09 PM »
Thanks LeoNeeson.

HTML & templates / Re: Simple contact template
« on: March 24, 2019, 05:30:01 PM »
What is the final file?

I just verified that activating in hfs  "Requests dump" register IP Cloudflare and visitor correctly. without the need to add the previous code.
I had not noticed that option.

problem solved.

Thanks Mars for your great help.

if I enter

register the 2 ip correctly

15:01:38 request
>    Cloudflare IP       :
>    CF-Connecting-IP :   correctly
>    X-Forwarded-For  :   correctly

if enter link direct

only register IP Cloudflare.
it no longer appears:

15:01:38 request
>    Cloudflare IP       :
>    CF-Connecting-IP :   correctly
>    X-Forwarded-For  :   correctly

Thanks Mars.

I enter the code at the beginning of the head tag
Is it the right place?

works well. But when it is entered by direct link, it does not work.
How is this resolved?

Code: [Select]
{.add to log| request
   Cloudflare IP       : %ip%
   CF-Connecting-IP : {.header|CF-Connecting-IP.}
   X-Forwarded-For  : {.header|X-Forwarded-For.}
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>{.!HFS.} %folder%</title>
<link rel="stylesheet" href="/?mode=section&id=style.css" type="text/css">
    <script type="text/javascript" src="/?mode=jquery"></script>
<link rel="shortcut icon" href="/favicon.ico">
<style class='trash-me'>
.onlyscript, button[onclick] { display:none; }
    // this object will store some %symbols% in the javascript space, so that libs can read them
    HFS = { folder:'{.js encode|%folder%.}', number:%number%, paged:{.!option.paged.} };
<script type="text/javascript" src="/?mode=section&id=lib.js"></script>

Hi there! I'm needing some help setting up a macro, to be able to see my visitors IP on the HFS's log. Since I'm using Cloudflare, I currently only see (in the HFS's log) the external IP of Cloudflare, and not the real visitor's IP. Reading the Cloudflare help, I see Cloudflare adds two useful "HTTP headers", like "CF-Connecting-IP:" and "X-Forwarded-For:". Those headers contain the visitors IP. If I only could parse those headers on the HFS's log, that would be awesome. I only need that: reading the "X-Forwarded-For:" value from the HTTP header, and register that on the HFS's log. Cheers!...

Español / Re: Registros IP Publica con Cloudflare
« on: October 10, 2017, 06:17:37 PM »
esa es la idea. Que muestre las IP en el log.

Yo no se ingles, la unica seria traduccir por google, pero ya tengo una mala experiencia con un post que cree hace mucho tiempo, y se formo una gran polemica, debido a que no entendian bien lo que yo deseaba.....voy a tratar mas adelante a ver que pasa.

Un saludo.

Español / Re: Registros IP Publica con Cloudflare
« on: October 09, 2017, 07:23:55 PM »

Gracias por tu respuesta.

Esos procedimientos aplican para apache, y similares, pero no para hfs.

Yo tengo apache en windows, y se puede lograr de dos formas:

1. con el mod_cloudflare (No utilice este metodo)

2. con un codigo php incluido en las paginas web, que me arroja las ip de cloudflare, y las ip real del visitante a mi sitio web.

Este ultimo metodo se podria adaptar en hfs, de acuerdo al codigo que maneja hfs. Pero no se donde se encuentra el codigo que registra las IP.
Creo que rejetto podria modificar ese codigo, de la misma forma como se hace en php; Donde se obtiene la IP real del visitante, y la IP del proxy
en caso de esconderse tras el.

Un saludo.

Español / Registros IP Publica con Cloudflare
« on: September 21, 2017, 06:13:50 PM »

Para ingresar a mi servidor se hace por medio de Cloudflare.

Al ingresar cualquier usuario al servidor, se registra la IP publica de cloudflare, pero NO se registra la verdadera IP Publica
del Usuario que accede al servidor.

Como se puede hacer para que me registre la verdadera IP Publica del usuario ?

Pages: 1 2 3