Sunday 24 February 2019

How-to: Block Google Translate from translating web pages

While Google Translate is a fantastic education tool it can also be used a proxy to circumnavigate web filtering policies.

I see this happen regularly in schools where web categories such as Pornography are blocked by the FortiGate web filter, but students will use Google Translate to get past this and view inappropriate web pages (albeit in a different language).

This post will go through how you can create a custom application signature to allow Google Translate to be used to translate words, but not used to translate/proxy web pages.



The first thing we'll need to do is create a custom application signature. On the FortiGate goto Security Profiles > Custom Signature and create a new application signature.

Name the new signature Google Translate Hyperlink and copy/paste the following signature:

F-SBID( --name "Google.Translate.Hyperlink.Custom"; --protocol tcp; --service ssl; --pattern "|16 03|"; --context packet; --within 2,context; --byte_test 1,=,1,3,relative; --pattern "translate.googleusercontent.com"; --context packet; --weight 20; --app_cat 12; )

Your new application should look like this:



Next goto Security Profiles > Application Control and edit the application sensor used for web traffic.

Goto Application Overrides and add the Google.Translate.Hyperlink application and ensure the action is set to Block. Also ensure that QUIC is set to Block. Your application sensor should look like this:


Now it's time to add this application sensor to our internet policy. Goto Policy & Objects > IPv4 Policy and edit your policy to include the application sensor. Ensure that you also select Deep Inspection for the SSL/SSH Inspection profile.


Lastly it's time to test it out. Goto Google Translate and type in a url then select the hyperlink:



You should now get the application blocked page:


3 comments:

José Ulisses said...

Is there any way to block youtube, but release videos from a specific channel?

Anonymous said...

That is a very very nice information.

Is there any possible to create a custom signature to block the login of dropbox for domain? For example the people with @gmail can login but @ hotmail dont.

Regards

Leidis Man said...

Thanks. This information is very good. Can you add a password to this so that the kid won't look this up and change back the configuration?