Security
When you add the LightMetrica script to your site, it runs for every one of your visitors. Here is what it does, what it never does, and how we protect it and your data.
1. What the script does
The script is about 3.5 KB. It sends us the pageview data described in the Privacy Policy — page address, referrer, screen width, time zone, language, page title, time on page and scroll depth — plus clicks on outbound, phone, email and messenger links, file downloads and goals you set up. That is all.
- it does not set cookies; in the browser it keeps only a random tab ID in session storage, which disappears when the tab is closed;
- it does not read form fields, passwords or anything typed on the page;
- it does not change the page, insert content or block clicks;
- it does not load other scripts and does not run code received from the server (no
eval); - it does not track the visitor across days or across different websites.
You can open the script itself at /lm.js and read it.
2. Pinned version with an integrity check (SRI)
By default the code loads /lm.js, which always contains the latest version. If you want the browser to run only the exact file you approved, use the pinned version from the counter settings: it is a fixed address with an integrity attribute. If the file on our server ever changed — by mistake or as a result of a breach — your visitors' browsers would refuse to run it. A pinned version does not update on its own; we never change or delete released versions, so your counter keeps working until you choose to update.
3. How we protect data
- all traffic is served over HTTPS with HSTS;
- IP addresses are not stored: visitors are counted with a hash that uses a salt changing every day;
- account passwords are stored only as salted scrypt hashes; login attempts are rate limited;
- sign-in sessions use httpOnly, Secure, SameSite cookies, and the database keeps only hashes of session tokens;
- access to each counter's reports is checked on every request: the owner, people the owner has invited, or anyone with a public link if the owner turned it on;
- everything visitors send to the dashboard — page addresses, titles, sources, goal names — is escaped before display, so fake events cannot run code in your account;
- the service runs as a separate system user in a sandbox: its code, including the tracking script file, is read-only to it, and it can write only to its own data folder — so even a compromised process cannot replace the script your visitors load;
- the server accepts administrative access only by SSH key, and the database files are not accessible to the web server.
4. Reporting a vulnerability
If you believe you have found a security issue, please write to smartscan.tools@gmail.com. Include the steps to reproduce it; please do not access other people's data or disrupt the service while testing. We will reply as soon as we can and let you know when it is fixed. Our contact details are also published in security.txt.