Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Regexp - Dúvidas em qual categoria cadastrar.

    Portuguese
    1
    1
    177
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Agenor Cerqueira
      last edited by

      Re: Pacote não oficial E2guardian v5 para software pfsense®

      Fala pessoal !
      Estou com o E2guardian a pleno vapor. @marcelloc ! Parabéns pelo trabalho, viu !
      O único "bang" é:

      • Reescrever URL forçando mecanismos de pesquisa em safemode.
        SSL REGEX - Site Lists
        REGEXP - Search engine

      "^http://[0-9a-z]+.bing.com[-/%.0-9a-z]/search?q=([^&])."->"\1"
      "^http://[0-9a-z]+.bing.com[-/%.0-9a-z]
      &q=([^&])."->"\1"
      "^http://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]/images?)"->"\1safe=active&"
      "^http://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]
      /search?)"->"\1safe=active&"
      "^http://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]/s?)"->"\1safe=active&"
      #"^https://www.google.[a-zA-Z0-9_.]
      $)"->"https://forcesafesearch.google.com"
      "^https://[0-9a-z]+.bing.com[-/%.0-9a-z]/search?q=([^&])."->"\1"
      "^https://[0-9a-z]+.bing.com[-/%.0-9a-z]
      &q=([^&])."->"\1"
      "^https://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]/images?)"->"\1safe=active&"
      "^https://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]
      /search?)"->"\1safe=active&"
      "^https://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]/s?)"->"\1safe=active&"
      "(^http://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]
      /search?client=firefox)"->"\1safe=active&"
      "(^https://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]/search?client=firefox)"->"\1safe=active&"
      "(^http://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]
      /images?)"->"\1safe=active&"
      "(^http://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]/images?)"->"\1safe=active&"
      "(^http://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]
      /search?)"->"\1safe=active&"
      "(^http://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]/s?)"->"\1safe=active&"
      "(^http://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]
      /search?client=firefox)"->"\1safe=active&"
      "(^https://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]/images?)"->"\1safe=active&"
      "(^https://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]
      /search?)"->"\1safe=active&"
      "(^https://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]/search?client=firefox)"->"\1safe=active&"
      "(^https://[0-9a-z]+.google.[a-z]+[-/%.0-9a-z]
      /s?)"->"\1safe=active&"

      Coloquei o ?client=firefox para filtrar no Mozilla.
      O intuito é inclusive filtrar com base em phraselist que também está preenchida.
      A pergunta é:

      • Estou utilizando de forma correta ? (setando nas duas categorias ?)
      • Existe uma forma que eu monitore se o Regex está pegando a URL digitada e fazendo a alteração ?
        (tcpdump ou algum log ou ... sei lá).
        No mais ... foi lendo as dúvidas de caso a caso que cheguei nas configurações que mais adequaram ao meu ambiente.

      Grato !

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.