Ir para conteúdo
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Regra No Mod_Security

Featured Replies

Postado

Fala pessoal,

Tenho a seguinte regra no mod_security:

SecRule REQUEST_LINE|RESPONSE_BODY|REQUEST_BODY|REQUEST_URI "/root"

Esta regra nega qualquer acesso utilizando "/root", mas tem como fazer uma condição, do tipo nega tudo que for "/root" menos "/rootTESTE" ?


Postado

Eu acredito que é aceito sintaxe do tipo que se pode definir se a expressão está no começo ou no fim.

Exemplo: ^ REQUEST_LINE "/root" $

Tente ver se há caracteres como ^ e $ em outras expressões do arquivo.

Edição: lendo o manual vi que aceita expressões do tipo Perl/PCRE, então o seguinte deve funcionar:

SecRule REQUEST_LINE|RESPONSE_BODY|REQUEST_BODY|REQUEST_URI "/root$"

Não há bem nem mal que dure para sempre. Um dia tudo acaba.


Visitante
Este tópico está impedido de receber novos posts.

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Informação Importante

Concorda com os nossos termos?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.