İçeriğe geç

http.request.uri.path — URI Son Segmenti

metin

Konsolda: URI Son Segmenti

Path’in son segmentini taşır, tam path’i değil: /admin/login isteğinde değeri /login, /api/v2/users isteğinde /users olur. Dosya veya endpoint adını, hangi dizinde olduğundan bağımsız hedeflemek için kullanılır.

OperatörAçıklama
==Tam eşleşme
!=Eşit değil
inListede bulunur
not_inListede bulunmaz
containsİçerir
not_containsİçermez
has_prefixBu önek ile başlar
has_not_prefixBu önek ile başlamaz
has_suffixBu sonekle biter
has_not_suffixBu sonekle bitmez
# Hangi dizinde olursa olsun PHP dosyalarını engelle
IF http.request.uri.path has_suffix .php
THEN block
# Her seviyedeki login endpoint'ine hız sınırı (/login, /admin/login...)
IF http.request.uri.path == /login
THEN ratelimit 10/60s