How do I charge a fee for site access without requiring frequent logins?
Wix Editor.
I would like to make my website only accessible to those with a pricing plan - BUT, I don’t want them to have to sign in every single time they use the site. Does anyone have a way to do this?
Currently I have pages restricted to members only, but I’m getting complaints about having to frequently sign in. I would love a way to sell a pricing plan up front, and then not have a login requirement afterwards.
The website is primarily used as a web app, so the “remember me” function available on browsers does not work for the login issue.
Paste the following code into the HTML-SECTION of your FIDDLE-Window.
Run the code
What do you get?
<div>
<p id="screenSize"></p>
<p id="browser"></p>
<p id="ip"></p>
</div>
<script>
function showUserInfo() {
// Get user's screen size
var screenWidth = screen.width;
var screenHeight = screen.height;
// Get user's browser
var browser = window.navigator.userAgent;
// Get user's IP using a third-party service
fetch('https://api.ipify.org?format=json')
.then(response => response.json())
.then(data => {
var ip = data.ip;
// Construct message
var message = "Screen Size: " + screenWidth + "x" + screenHeight + "\n" +
"Browser: " + browser + "\n" +
"IP: " + ip;
// Show popup with user information
window.alert(message);
})
.catch(error => {
console.error('Error fetching IP:', error);
});
}
// Call the function when the page is fully loaded
document.addEventListener("DOMContentLoaded", function() {
showUserInfo();
});
</script>
The idea behing this → You generate an own database → where you store the footprint of each of your USERS using your website.
With the help of the footprint, you can give every user it’s own ID and identicate the user regarding his FOOTPRINT.
The more data you can add to the footprint → the more accurate you can identify the user → even without logging him into Wix-System.
Adding all these maybe even some AI, which is capable to incpect and analyse the footprints, it could give you almost 100% identification of a user.
The problem → if user changes his footprint and start wearing shoes
Well—> as long as he/she starting wearing the same shoes → no problem → AI again recognizes her/him as an USER, but wearing different shoes all the time —> you understand the end?
But i am honest → i didn’t test it yet —> just an idea!