Before updating a site, moving it to another host or handing it to a developer, many people first archive the whole folder. That is a good habit, but the archive often stays right in the web root as backup.zip, site.tar.gz or db.sql. Once the job is done, nobody remembers to delete it, and the file sits on the public internet for months. Finding it requires no special skill, only a lucky guess at the file name.
Why one archive is more dangerous than the whole site
Normally PHP files are never shown to the browser: the server executes them and returns only the output, so the passwords inside config.php or .env stay hidden. An archive is served as a plain download, and everything inside it comes out untouched. The attacker gets configuration files, database passwords, payment keys and source code at once. If the archive also contains a database dump, customer names, phone numbers, orders and password hashes leak too, which is a privacy incident, not just a technical one.
How these archives get found
Scanning bots try the most common names on every domain: backup.zip, www.zip, site.rar, public_html.tar.gz, dump.sql, and archives named after the domain, such as example.uz.zip. Backup plugins can also leave archives inside wp-content, protected only by an .htaccess file. That protection works on Apache, but if Nginx serves the site directly, .htaccess is ignored and the folder is open.
Example: a clinic website in Samarkand
A private clinic in Samarkand runs misol.uz with an online appointment form. Before a redesign, the developer packed the files and the database into old_site.zip in the web root to make the move easier. The migration went fine, but the archive was never removed. Months later patients started receiving suspicious "appointment confirmation" messages, and the logs showed the archive had been downloaded several times from unknown addresses. The site itself had no vulnerability; one forgotten file was enough.
Checking your site for exposed archives
With SSH access, list large archives and dumps in the site folder:
find ~/www/example.uz -type f \( -name "*.zip" -o -name "*.tar.gz" -o -name "*.rar" \
-o -name "*.7z" -o -name "*.sql" -o -name "*.sql.gz" -o -name "*.bak" \) -size +1M -ls
From outside, probe the usual names. A 200 code means the file is public:
for f in backup.zip site.zip www.zip backup.tar.gz dump.sql db.sql; do
echo "$f $(curl -s -o /dev/null -w '%{http_code}' https://example.uz/$f)"
done
Storing backups safely
Keep backups outside the web root, for example in a backups folder in your home directory, or off the server entirely. Encrypt copies that travel elsewhere:
tar -czf ~/backups/site.tar.gz -C ~/www example.uz
gpg -c ~/backups/site.tar.gz
As an extra layer, deny archive and dump extensions at the web server. In Apache .htaccess:
<FilesMatch "\.(zip|rar|7z|tar|gz|sql|bak)$">
Require all denied
</FilesMatch>
In Nginx:
location ~* \.(zip|rar|7z|tar|gz|sql|bak)$ {
deny all;
}
If your site intentionally offers zip downloads, such as a school sharing study materials, apply the rule only to specific folders.
If an archive was already exposed
Deleting the file is only the first step. Check the logs for successful downloads:
grep -E "\.(zip|rar|tar\.gz|sql)" access.log | grep '" 200 '
If you find downloads, or the logs are gone, treat every secret in the archive as leaked: change database, mail, FTP and admin passwords and regenerate payment and SMS keys. If personal data was included, check your legal obligations with a lawyer. On sayt.uz hosting you can review and delete stray archives in the ISPmanager file manager opened from your cabinet.