# Unable to access Sitejet due to Custom Code error

**URL:** <https://community.sitejet.io/t/unable-to-access-sitejet-due-to-custom-code-error/4487>\
**Category:** cPanel\
**Created:** [March 14, 2025, 5:25pm UTC](https://community.sitejet.io/t/unable-to-access-sitejet-due-to-custom-code-error/4487 "2025-03-14T17:25:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vandjelkovic](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@Vandjelkovic](https://community.sitejet.io/u/Vandjelkovic)\
**Post date:** [March 14, 2025, 5:25pm UTC](https://community.sitejet.io/t/unable-to-access-sitejet-due-to-custom-code-error/4487/1 "2025-03-14T17:25:28Z")

</div>

Hi Sitejet Support,

I recently added a Custom Code script to my website ( **airsurvey.rs** ), but now I am unable to access the Sitejet editor due to a redirect issue. The login page keeps redirecting, preventing me from making any changes.

I was able to access my website through **cPanel** , but I need help resetting or removing the problematic script in Sitejet. Could you assist me in restoring access to my Sitejet editor?

Thank you for your help!

Best regards,  
Vladan Andjelkovic

---

<div class="post-metadata">

**Author:** ![Vandjelkovic](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@Vandjelkovic](https://community.sitejet.io/u/Vandjelkovic)\
**Post date:** [March 14, 2025, 6:02pm UTC](https://community.sitejet.io/t/unable-to-access-sitejet-due-to-custom-code-error/4487/2 "2025-03-14T18:02:18Z")

</div>

> [@Vandjelkovic](#):
>
> t editor due to a redirect i

my adress is [Login](https://cms.sitehub.io/1309148). Please in javascript is problem.  
// Provera na strani sa mapom  
function checkAccess() {  
const loggedInUser = localStorage.getItem(‘loggedInUser’);  
if (!loggedInUser) {  
alert(‘Nemate pristup. Prijavite se ponovo.’);  
window.location.href = ‘login.html’; // Preusmeri na login stranicu  
}  
}

// Funkcija za odjavu  
function logout() {  
localStorage.removeItem(‘loggedInUser’); // Briše prijavu  
window.location.href = ‘login.html’;  
}

// Pozovi checkAccess() na stranici sa mapom  
checkAccess();  
Please delete up code.
