Is it possible to do a js script that will make the page return “403 forbidden” error when trying to visit?
In Backend or front end?
what’s the difference i am newbie dev :V
Without some basic info like what your app does it is impossible to know how to fix it. One assumes that it is a web site but might not be, it could be an API or a Discord Bot or something else. Have you used a server? Does it have a name? Is your project public?
It’s a static webpage. I was just wondering if there is a way to make a JS script to return a 403 error.
I’m probably not the person who can ultimately answer this but I’m trying to explain there may not be enough data to go on. It is a static page? Meaning the JS is running on the browser?
What generates the need to generate such an error? I suspect it is the lack of information that is limiting the responses.
I just want to generate a 403 error using a simple js code .-.
You will need to use server side code to send status codes.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.