Skip to main content
duenlim
Staff
Staff
January 22, 2026

Technical Tip: Unable to block file uploading to Google Translate (translate.google.com)

  • January 22, 2026
  • 0 replies
  • 192 views
Description

This article describes how file uploading is being block to most upload websites, but not on translate.google.com.

 

image.png

Scope FortiProxy v7.2/v7.4.
Solution
  1. The Proxy Policy configurations successfully block the specific file types from uploading to most of the websites. 

 

config firewall policy
    edit 6
        set type explicit-web
        set uuid f7642bde-dba3-51f0-1171-c31a19d81026
        set dstintf "port1"
        set srcaddr "all"
        set dstaddr "all"
        set action accept
        set schedule "always"
        set service "webproxy"
        set explicit-web-proxy "web-proxy"
        set utm-status enable
        set logtraffic all
        set profile-protocol-options "Clone of default"
        set ssl-ssh-profile "SSL Deep Inspection"
        set webfilter-profile "g-default"
        set dlp-profile "Block"
    next
end

 

config dlp profile
    edit "Block"
        config rule
            edit 1
                set name "BlockUpload"
                set proto http-post
                set file-type 1
                set action block
            next
        end
    next
end

 

config dlp filepattern --> Microsoft Word and Excel.
    edit 1
        set name "builtin-patterns"
            config entries
                edit "msoffice"
                    set filter-type type
                    set file-type msoffice
                next
                edit "msofficex"
                    set filter-type type
                    set file-type msofficex
                next
                edit "*.doc"
                next
                edit "*.docx"
                next
                edit "*.xlsl"
                next
            end
    next
end

 

  1. The reason why file uploading slips through when uploading a file to Google Translate, there is that Google Translate does Base64-encode document content as part of the upload process and sends over POST requests to Google Translate APIs. Furthermore, embedded inside JSON payloads. 

 

connection": "8080",
"request": {
"method": "POST",
"url": "https://translate.google.com.my/_/TranslateWebserverUi/data/batchexecute?rpcids= 

LBEnTe&source-path=%2F&f.sid=-5914947044029896701&bl=boq_translate-webserver_20260107.05_

p0&hl=en-US&soc-app=1&soc-platform=1&soc-device=1&_reqid=357565&rt=c ",
"httpVersion": "http/2.0",

"size": 19204,
"mimeType": "application/json",
"text": ")]}'\n\n19108\n[[\"wrb.fr\",\"LBEnTe\",\"[[\\\"UEsDBAoAAAAIAHs/

LFyPRp33AAkAADZiAAARAAAAd29yZC9kb2N1bWVudC54bWztXd1S4zoSvj9P0eXa3SuTyI5/kuxkTgUIDANhUglbe7ml2

Iqtgy15ZRmTvTrvsFd7t8+yj3KeZEu2ExJghjDMH5oUVWDLVltS99etbrXEm19v0wRuiMgpZwPDaiEDCAt4SFk0MP52d

XLQNSCXmIU44YwMjCXJjV/f/vKm7Ic8KFLCJNymCcv7ZRYMjFjKrN9u50FMUpy3UhoInvOFbAU8bfPFggakXXIRtm1

koeoqEzwgeU5ZdIT

 

  1. Alternatively, the upload can be blocked using the proxy address.

  1. Create two proxy addresses as follows via CLI commands:

 

config firewall proxy-address

    edit "GoogleTranslateDocument"
        set type header
        set host "all"
        set header-name "x-goog-ext-387202953-jspb"
        set header "/DataService.GetDocumentTranslation"
    next
end

 

    edit "GoogleTranslateImage"
        set type header
        set host "all"
        set header-name "x-goog-ext-387202953-jspb"
        set header "/DataService.GetImageTranslation"
    next
end

 

Note: Google frequently updates its HTTP requests protocol/headers. The above HTTP request headers were tested based on January/February 2026.

 

  1. Create FQDN objects.

 

config firewall address
    edit "translate.google.com"
        set type fqdn
        set fqdn "translate.google.com"
    next
end

 

    edit "translate.google.com.my"
        set type fqdn
        set fqdn "translate.google.com.my"
    next
end

 

Note: There are well-known Google Translate domain variants, such as the examples below. It is required to create more fqdn objects for each variant:

 

  1. Create a proxy policy as per the attached and make sure it is placed at the top.

 

Workaround.jpg

 

  1. The browser debug (developer tools) shown specify HTTP headers are being denied and forward traffic log as well.

 

ForwardTraffic.jpg

 

google_translate_upload_doc_block.jpg

 

This method will block all uploads to Google Translate.