Whitelist Key
Whitelist Key
Click the button to get your whitelist key.
Get Access
const getAccessButton = document.getElementById(‘get-access’);
getAccessButton.addEventListener(‘click’, () => {
const urlParams = new URLSearchParams(window.location.search);
const hwid = urlParams.get(‘hwid’);
const service = urlParams.get(‘service’);
if (hwid && service) {
// Make an AJAX request to your server to get the whitelist key
fetch(`/getkey?hwid=${hwid}&service=${service}`)
.then(response => response.text())
.then(key => {
// Display the key to the user or do something else with it
alert(`Your whitelist key is: ${key}`);
})
.catch(error => {
console.error(‘Error getting whitelist key:’, error);
alert(‘Error getting whitelist key. Please try again.’);
});
} else {
alert(‘Missing HWID or service information.’);
}
});