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

195
Vistas
Protect static files with Nginx

I am using nginx for static audio files for my music player mobile app. No dynamic links, no scripts, just static urls. How to close access to files, if query comes not from my app? I don't have any authentication and i don't want to force users use it. I read about http://nginx.org/en/docs/http/ngx_http_auth_request_module.html. Also it would be great to use Laravel for this purpose.

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

0

Normally, resource requests from your web page will contain an HTTP referer request header equal to that page's URL. Otherwise, the referer is blank for direct access or will be the URL of another site. Try:

location /static {
  if ($http_referer !~ ^http[s]?://example.com) {
    return 404;
  }
}
over 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