I have a question: is it possible to do this with my domain as shown in the example in the picture? I don’t have a custom domain right now, you have 2 options and I wanted to ask how you can do that. Picture 2 is my code
you can apply to https://nic.eu.org to get a free domain name, its free for life but registration can take days to months and in a few cases more than a year !
it took me months to get my https://lovebyte.eu.org but it was worth the wait for a free lifetime domain name
you might as well sign up for one as you might get really lucky and get it quickly but even if it comes late its worth the wait
thank u might u have also an idea about .env files because they not work ig what a shame because my website is using an specific api key what should not get publick
infinityfree’s free webhosting only allows files to be stored in the public htdocs directory or sub-directories which is a bad place for your .env files
but I think if you put them into sub-directory within htdocs and then create a .htaccess file within that sub-directory containing the line
Deny from all
then this should prevent access to your private information via web access but php code running on your site will still be able to access the data
.env files are not a good way to securely store secret data. Storing the configuration in PHP files is more secure as you don’t need to setup .htaccess rules to prevent the server from showing the contents of the file.