htaccess file gets removed automatically

Hi Folks,
I have a strange issue at one of my clients sites.
Some time ago I adviced to setup a .htaccess file in the root-directory to deny access from specific spam-IP’s. Therefore I used a list with IP’s with a “deny from”.

However at some day the .htaccess file was gone. I uploaded it again, but now each time after uploading it disappears immediately from the server.

Is this by design? Or is the (WordPress) application doing this?

Thanks for any info.
Regards,
Jan-Pieter

That is not something we are doing or by design, you are sure it isn’t just not showing ‘hidden’ files (. in front of name files), but actual functions missing?

Ha, nice feature.
My ftp client (filezilla) hides hidden files by default… LOL

Ok: ‘problem’ solved.

I’ve actually seen filezilla remove the .htaccess file. Not sure why, but when a customer of mine uploads files to a specific directory that I have locked down with .htaccess, I have to create the file again and again because as soon as they upload a file to that directory, filezilla deletes the .htaccess file.

This is with show hidden files (or equivalent ) option enabled?

Whatever the default setting is, so I would assume it isn’t enabled by default..

The default filezilla setting is NOT to display hidden files (after all, they are hidden). On UNIX-like systems, file names and directories are hidden by starting the name with a “.”

Yes, I realize it’s the default setting to not show hidden files, but that doesn’t account for why filezilla seems to delete them every single time they upload something (even a single file) to those directories..

In many years of using Filezilla on Windows and more recently Linux, I have never known it to delete files on its own accord. Are you sure it’s not just a case of a filezilla setting?

You could check out if files are really being deleted by using H-sphere’s filemanager, bearing in mind that the default setting for Webshell4 is also not to display hidden files :slight_smile: