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

204
Vistas
.htaccess - Allow IP range with authentication & bypass for one page

I'm struggling with a .htaccess file to accomplish the following:

I have a subdomain with our admin console in

  • Grant access to /pagecheck/ from any IP without authentication (health check script)
  • Block access to all other resources from any IP that is not on our list of approved IPs
  • Request HTTP authentication popup for any allowed IPs

I'm struggling to block access from "outside" IPs as I can't seem to get the reordering right.

This is the code that works for /pagecheck/ and authentication:

SetEnvIfNoCase Request_URI "^/pagecheck/" noauth

AuthName "Admin Area"
AuthType Basic
AuthUserFile /home/production/.htpasswd
require valid-user

Order Deny,Allow
Deny from all
Allow from env=noauth
Satisfy any
DirectoryIndex index.cgi
Options -Indexes

However, I'm struggling to get the logic in the right place to only allow access from our office IP address range. I think it is conflicting with the different Orders and the authentication.

Could anyone help? Thanks

over 4 years ago · Santiago Trujillo
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