How to block keyword in https site

can you help me?i was trying block keyword in layer7 protocol but only keyword in http site can blocked. https not block

What you’re trying to do is not feasible.

dont use L7 for blocking, use these rules and filter keywords and urls.

step-1

  • Go to IP => Firewall
    on the Mangle Tab, add new Mangle Rule
    +Chain =forword
    +Action=make connection
    +New connection=Block

step-2

  • Go to IP => Firewall, Onthe filter rules,
    add Firewall Rule. Enter parameter value as below :
    +Chain =forword
    +Connection Mark=Block (created from Mangle)
    +Advance
    -Content=a.b.c.d (drop your keyword or domain)
    +Action =drop

Except that won’t do anything either. Https = encrypted = you can’t see what’s inside.

DNS is your only possibility. If you want to block the domain.

If it was just about blocking access to specific hostname, then L7 can be used with good results, because most clients nowadays should be using SNI and it transfers requested hostname in plaintext. But anything inside the connection is off limits.