Y otro más :-/
----- Forwarded message from Ariel Martin Bellio <yo.ariel.mar...@gmail.com> ----- Date: Mon, 11 Dec 2023 08:24:05 -0300 From: Ariel Martin Bellio <yo.ariel.mar...@gmail.com> To: Camaleón <noela...@gmail.com> Subject: htaccess de pareja.tebusco.com.ar User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 .htaccess de pareja.tebusco.com.ar #Header set Cache-Control "max-age=3600, public" #Header set Content-Type "text/html; charset=utf-8" #AllowEncodedSlashes On Options -Indexes RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{HTTP_REFERER} !^$ #RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?pareja.test [NC] #RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L] # Bloqueo de directorios RewriteRule "^vendor/" - [F,L] RewriteRule "^images/fotos/" - [F,L] RewriteRule "^attach/" - [F,L] # Pagina principal index.php / Default.php RewriteRule "^$" "/pages/principal.php" [L] RewriteRule "^qr/([a-f0-9]+)$" "/pages/qr.php?token_escanear_qr=$1" [L] RewriteRule "^qr/" "/pages/principal.php" [L] # Scripts RewriteRule "captcha$" "/scripts/captcha.php" [L] RewriteRule "escaneo$" "/scripts/escaneo.php" [L] RewriteRule "coordenadas$" "/scripts/coordenadas.php" [L] RewriteRule "^verificar_qr/$" "/scripts/verificar_qr.php" [L] RewriteRule "^escaner_qr/([a-f0-9]+)$" "/pages/escaner_qr.php?token_escanear_qr=$1" [L] RewriteRule "actualiza_redes$" "/scripts/actualiza_redes.php" [L] RewriteRule "publicar$" "/scripts/post_publico.php" [L] RewriteRule "privado$" "/scripts/post_privado.php" [L] RewriteRule "buscar_usuarios$" "/scripts/buscar_usuarios.php" [L] RewriteRule "baja$" "/scripts/eliminar_usuario.php" [L] RewriteRule "foto$" "/scripts/foto.php" [L] RewriteRule "nuevo_password$" "/scripts/nuevo_password.php" [L] RewriteRule "^mensaje_match$" "/scripts/mensaje_match.php" [L] RewriteRule "^entrar/$" "/scripts/login.php" [L] RewriteRule "^logout/$" "/scripts/logout.php" [L] RewriteRule "^registrarse/$" "/scripts/register.php" [L] RewriteRule "^nuevaclave/$" "/scripts/recuperar_password.php" [L] RewriteRule "^bloquear_cuenta/$" "/scripts/bloquear_cuenta.php" [L] RewriteRule "^modificar/$" "/scripts/modificar_password.php" [L] RewriteRule "^cancelar_recuperar/([a-f0-9]+)$" "/scripts/cancelar_nuevo_password.php?token_modificar_password=$1" [L] RewriteRule "^contacto/$" "/scripts/enviar_mensaje_contacto.php" [L] RewriteRule "^like/([a-f0-9]+)/(.*)$" "/scripts/like.php?token_like=$1&id_like=$2" [L,B] RewriteRule "^unlike/([a-f0-9]+)/(.*)$" "/scripts/unlike.php?token_unlike=$1&id=$2" [L,B] RewriteRule "^eliminar_priv/([a-f0-9]+)/(.*)$" "/scripts/eliminar_privado.php?token_eliminar=$1&mensaje_id=$2" [L,B] RewriteRule "^responder/$" "/scripts/responder_mensaje.php" [L] # Fotos/Imágenes RewriteRule "^foto/(.*)$" "/scripts/fotos.php?imagen=$1" [L,B] # Paginas RewriteRule "^usuario/$" "/pages/usuario.php" [L] RewriteRule "^cuenta/$" "/pages/cuenta.php" [L] RewriteRule "^redes/$" "/pages/redes.php" [L] RewriteRule "^suerte/$" "/pages/suerte.php" [L] RewriteRule "^buscar/$" "/pages/buscar.php" [L] RewriteRule "^mensajes/$" "/pages/mensajes.php" [L] RewriteRule "^matches/$" "/pages/coincidencias.php" [L] RewriteRule "^match/([a-f0-9]+)/(.*)$" "/pages/match.php?token_coincide=$1&id_codificado=$2" [L,B] RewriteRule "^encontrado/([a-f0-9]+)/(.*)$" "/pages/encontrado.php?token_buscar=$1&id=$2" [L,B] # Acceso remoto RewriteRule "^recuperar/([a-f0-9]+)/(.*)$" "/pages/link_password.php?token=$1&id=$2" [L,B] RewriteRule "^verificar/([a-f0-9]+)/(.*)$" "/scripts/validar_email.php?token=$1&id_codificado=$2" [L,B] RewriteRule "^irme/([a-f0-9]+)/(.*)$" "/scripts/adios_usuario.php?token=$1&id_codificado=$2" [L,B] RewriteRule "^bloquear/([a-f0-9]+)/(.*)$" "/scripts/bloquear.php?token_bloquear=$1&id_codificado=$2" [L,B] RewriteRule "^desbloquear/([a-f0-9]+)/(.*)$" "/scripts/desbloquear.php?token_desbloquear=$1&id_codificado=$2" [L,B] RewriteRule "^archivo/(.*)$" "/scripts/descargar_adjunto.php?archivo_adjunto=$1" [L,B] RewriteRule "^borrar/(.*)$" "/scripts/unlink.php?archivo_adjunto=$1" [L,B] # Lo siguiente está comentado por problemas con sessiones #ErrorDocument 401 /scripts/404.php #ErrorDocument 403 /scripts/404.php #ErrorDocument 404 /scripts/404.php ----- End forwarded message ----- -- Camaleón