Fortigate Replacement Message

Hi Experts,

I have set up some webfilters in my FORTIGATE 200B.
Now I want to change the message when a site is blocked. I have to do this at the REPLACEMENT MESSAGES.
But how to include a picture ?
Can you give me some templates ?
Eprs_AdminSystem ArchitectAsked:
Who is Participating?
 
Joey YungSenior Network EngineerCommented:
The size is an optional parameter.

From the "System > Config > Replacement Messages"

highlight the "FortiGuard Block Page" you can preview the page and edit the coding
0
 
andreasSystem AdminCommented:
i am not familiar with fortigate, but can't it serve normal html files as replacements? If it can, just make such an html file and  put it where the appliance will look for that file. (together with the image).
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
I already know this.
But when I want to implement a picture, this will not work.
Therefore I need a template for Fortigate with a picture in it.
0
Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

 
andreasSystem AdminCommented:
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
Yes I tried this...

For example:
<img src=%%IMAGE: logo_hq%% size=4272>

But how I know the size of the picture and is it really necessary ?
How to implement this line into a template of HTTP BLOCK URL ?
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
ok I will check it....
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
Hello,

I cannot preview the message.
I just can open the HTML text.
But when I add the IMAGE text from another message it is still not working.
Can you create a template for my tests please ?
0
 
Joey YungSenior Network EngineerCommented:
Which FortiOS version you're running?

I have attached the page for your reference.

Forti.png
for example:    

div.header h2 {
      background: url(%%IMAGE:your-define-img-name%%) 0 -82px no-repeat;
      width: 160px;
      float: right;
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
this is my version

v4.0,build0665,130514 (MR3 Patch 14)
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
when I replace the text with yours, no picture is seen, just this one on the screen:
I changed also the name of the logo inside .

div.header h2 { background: url(http://www.krone.at:8008/XX/YY/ZZ/CI/IECEHEPFMEPGHGPG) 0 -82px no-repeat; width: 160px; float: right; 

Open in new window

0
 
Eprs_AdminSystem ArchitectAuthor Commented:
This is my message I want to change and put a logo inside:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">html,body{height:100%;padding:0;margin:0;}.oc{display:table;width:100%;height:100%;}.ic{display:table-cell;vertical-align:middle;height:100%;}div.msg{display:block;border:1px solid #30c;padding:0;width:500px;font-family:helvetica,sans-serif;margin:10px auto;}h1{font-weight:bold;color:#fff;font-size:14px;margin:0;padding:2px;text-align:center;background: #30c;}p{font-size:12px;margin:15px auto;width:75%;font-family:helvetica,sans-serif;text-align:left;}</style>
<title>The URL you requested has been blocked</title></head><body><div class="oc"><div class="ic"><div class="msg"><h1>The URL you requested has been blocked</h1><p>The page you have requested has been blocked, because the URL is bannnnnned.<br /><br />
URL = %%URL%%<br />%%OVERRIDE%%</p>
</div></div></div></body></html>

Open in new window


Please can you show me where to put the code for the logo ?
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
Still cannot put my logo in the template
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
I think I have to upgrade my fortigate to version 5 , right ?
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
Thanks, now we use Fortigate 200D with 5.2.4
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.