Infinityfree
InfinityFree provides free PHP web hosting with cPanel. You can edit HTML files directly through File Manager or FTP. Paste the snippet in your template and the change goes live immediately.
Accessing your files in InfinityFree File Manager
Log in to your InfinityFree account at infinityfree.com. Click on your hosting account to open the control panel, then click File Manager. Navigate to the htdocs directory (also shown as public_html) — this is the root of your website where your HTML and PHP files live.
Find the file you want to edit — usually index.html or index.php for your homepage, or whichever file serves as the template for your pages. Click the file to select it, then click Edit (or right-click → Edit) to open the built-in text editor.
Scroll to the bottom of the file, find the </body> tag, and paste the StatelessID snippet just above it. Click Save. The change is live as soon as the save completes — InfinityFree serves the file directly from disk.
PHP templates and includes on InfinityFree
If your InfinityFree site uses PHP and a common footer include — for example a footer.php that is included at the bottom of every page with require or include — edit that footer file and paste the snippet there. Every page that includes footer.php will automatically carry the snippet.
To find the footer include, look for lines like require 'footer.php' or include 'includes/footer.php' near the bottom of your main PHP files. Open the referenced file and add the snippet before the closing </body> or body content tag.
InfinityFree supports PHP 7 and 8 on most accounts. There are no PHP-specific restrictions that would affect how the snippet fires in the visitor's browser — it is pure HTML/JavaScript that runs on the client side.
FTP access as an alternative to File Manager
InfinityFree provides FTP credentials in the account panel under FTP Accounts. You can use any FTP client — FileZilla is popular and free — to connect to the server and download/edit/upload files from your local machine.
Connect to the FTP server using the hostname, username, and password from your InfinityFree account panel. Navigate to htdocs, download the HTML or PHP file you want to edit, add the snippet in your local editor, then upload the modified file back to the same path. The updated file replaces the old one immediately.
FTP is more comfortable than the browser-based File Manager for making many edits across multiple files. If your site has a dozen pages each with separate HTML files, FTP lets you batch-download them all, add the snippet to each, and batch-upload in one session.
InfinityFree subdomain and custom domain setup
New InfinityFree accounts come with a free subdomain on one of their shared domains (e.g., yoursitename.rf.gd or yoursitename.epizy.com). Register that full URL as your site in the StatelessID dashboard and use the assigned key.
InfinityFree allows you to add a custom domain through the control panel. If you add a custom domain, update the StatelessID site registration to use the custom domain URL and update the data-k value in your templates.
InfinityFree includes free SSL via AutoSSL or Let's Encrypt for both subdomains and custom domains. Once SSL is active and your site is reachable at https://, use https:// in your StatelessID registration.
Troubleshooting
I saved the file in File Manager but the live page still shows the old version. InfinityFree uses a caching layer between the server and the visitor. Try a hard refresh in your browser (Ctrl+Shift+R or Cmd+Shift+R). If the old version persists for more than 5 minutes, wait — InfinityFree's cache TTLs are usually under 10 minutes.
The file manager shows the snippet in the file but the live page does not have it. Confirm you saved to htdocs and not to a subdirectory or a different domain's folder. InfinityFree can host multiple domains on one account, each in a different directory. Make sure you edited the right domain's files.
I get a 403 Forbidden error when I try to load my site after editing the file. This usually means a file permission error, not a problem with the snippet. Check file permissions in File Manager — HTML files should be 644. If you uploaded via FTP and a permission was set incorrectly, use File Manager to set it back to 644.