Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

93
Vistas
Ensure a user is not able to modify id in url

I'm working on a react/express application. The url look something like this: /dashboard?matchID=2252309 . As a user I should only be able to access this url. if I try to modify the matchid I should not be able to see the page. Is it a simple way to do this? One option is to create a endpoint and check through my database for access.

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

There is no way to restricted the user to enter some URL based on your database. To match your expectation you have two available solutions :

Solution A : Check the user's authorization server-side with a web token and restrict the access to the requested ressource. You will have to implement a login and a permission system.

Solution B : Hide your real ressource ID in a web token (JWT) to make a complicated non-deterministic / non-guessable public Id / URL. Anyone who have the exact URL would have access to the requested ressource.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda