cancel
Showing results for 
Search instead for 
Did you mean: 

Return the default templates .txt files instead of .html files.

Jump to solution

Easiest way of making this possible?

1 Solution

Accepted Solutions
McAfee Employee aloksard
McAfee Employee
Report Inappropriate Content
Message 2 of 4

Re: Return the default templates .txt files instead of .html files.

Jump to solution

Hi,

Hope you are doing well.

Templates

This view provides all the templates belonging to a collection. Each template contains the following:

en - Language versions of the template. A fresh installation of Web Gateway ships with English templates. If you'd like templates in a different language, you can download various language packs from https://contentsecurity.mcafee.com and import them into the template editor.


html - Version in HTML format. This version of the block message will be served to an application that understands HTML. (ex: Web Browsers)


txt - Version in TEXT format. This version of the block message will be served to an application that doesn't understand HTML. (ex: FTP applications, IM, etc)

 

Below link can be refered:-

https://community.mcafee.com/t5/Documents/Web-Gateway-Customizing-Block-Pages/ta-p/553911#toc-hId--6...

 

 

For example:- In your block rule, in the action section Block will be choosen, below Block Action is option called Settings-> in which you can click Edit-> Template Nme -> Click on Add -> Give the name-> Choose language en( English)-> Content File Type only choose as txt-> Click on OK & Edit-> Enter whatever you want to display to users and save the changes.

 

Now when that block rule gets triggered user will not see proper MWG block page HTML format,  but only see text part.  Below is an example:-

 

Status Code: 403'
MainBlockTemplate = 'index.html'
BlockMessage = 'aaa.html'

 

Name of the template here is aaa.

 

 Or maybe in your existing block page settings itself you can delete html part, so that only text is being displayed.

 

Regards

Alok Sarda

3 Replies
McAfee Employee aloksard
McAfee Employee
Report Inappropriate Content
Message 2 of 4

Re: Return the default templates .txt files instead of .html files.

Jump to solution

Hi,

Hope you are doing well.

Templates

This view provides all the templates belonging to a collection. Each template contains the following:

en - Language versions of the template. A fresh installation of Web Gateway ships with English templates. If you'd like templates in a different language, you can download various language packs from https://contentsecurity.mcafee.com and import them into the template editor.


html - Version in HTML format. This version of the block message will be served to an application that understands HTML. (ex: Web Browsers)


txt - Version in TEXT format. This version of the block message will be served to an application that doesn't understand HTML. (ex: FTP applications, IM, etc)

 

Below link can be refered:-

https://community.mcafee.com/t5/Documents/Web-Gateway-Customizing-Block-Pages/ta-p/553911#toc-hId--6...

 

 

For example:- In your block rule, in the action section Block will be choosen, below Block Action is option called Settings-> in which you can click Edit-> Template Nme -> Click on Add -> Give the name-> Choose language en( English)-> Content File Type only choose as txt-> Click on OK & Edit-> Enter whatever you want to display to users and save the changes.

 

Now when that block rule gets triggered user will not see proper MWG block page HTML format,  but only see text part.  Below is an example:-

 

Status Code: 403'
MainBlockTemplate = 'index.html'
BlockMessage = 'aaa.html'

 

Name of the template here is aaa.

 

 Or maybe in your existing block page settings itself you can delete html part, so that only text is being displayed.

 

Regards

Alok Sarda

Highlighted

Re: Return the default templates .txt files instead of .html files.

Jump to solution

Thanks for the great answer Alok Sarda.

Okey, then I think I know what to do. Thanks!

I'm guessing from your response that there's no way to force the engine to respond with the default .txt format in "Default Schema" even though I'm not using a FTP app or similar?

McAfee Employee aloksard
McAfee Employee
Report Inappropriate Content
Message 4 of 4

Re: Return the default templates .txt files instead of .html files.

Jump to solution

Hi,

Hope you are doing well.

MWG detects automatically whether to show txt or html version

 

If you need to deliver text files you can create a completely new scheme and add only text to the HTML templates.

 

Regards

Alok Sarda

McAfee ePO Support Center Plug-in
Check out the new McAfee ePO Support Center. Simply access the ePO Software Manager and follow the instructions in the Product Guide for the most commonly used utilities, top known issues announcements, search the knowledgebase for product documentation, and server status and statistics – all from within ePO.