FLASH0 Access Premission

I have a simple thread that store some persistent data into a file stored inside FLASH0 memory.

I’m noticing that file is accessible without restrictions from web browser using the url http:///FS/FLASH0//

this behavior is undesirable for me.
is there a way to prevent this?

I am pretty sure it asks you for a password before letting you access the filesystem.

Maybe I’m configuring the security table wrong.

This is what I do.

[SECURITY.C]
void RpHSInitSecurityTable(void *serverdata)
{
int res = -1;
//res = NAHttpSetRealmSecurity (0, “NA-HTTP AWS Realm 1”, NA_HTTP_SECURITY_SINGLE_ACCESS, NA_HTTP_SECURITY_BASIC_AUTHENTICATION);
res = NAHttpSetRealmSecurity (0, “NA-HTTP AWS Realm 1”, NA_HTTP_SECURITY_MULTIPLE_ACCESS, NA_HTTP_SECURITY_BASIC_AUTHENTICATION);
//Please Do not implemennt Realm 2
res = NAHttpSetRealmSecurity (2, “NA-HTTP AWS Realm 3”, NA_HTTP_SECURITY_MULTIPLE_ACCESS, NA_HTTP_SECURITY_BASIC_AUTHENTICATION);
res = NAHttpSetRealmSecurity (3, “NA-HTTP AWS Realm 4”, NA_HTTP_SECURITY_MULTIPLE_ACCESS, NA_HTTP_SECURITY_BASIC_AUTHENTICATION);
}

[ROOT.C inside applicationStart()]
// I configure 2 users
NAsetSysAccess(NASYSACC_ADD, “admin”, “somepw”, NASYSACC_LEVEL_HTTP_R1 | NASYSACC_LEVEL_RW, NULL);
NAsetSysAccess(NASYSACC_ADD, “supervisor”, “somepw”, NASYSACC_LEVEL_HTTP_R3 | NASYSACC_LEVEL_RW, NULL);

maybe I’m doing something wrong can you take a look to the code I’ve posted below?