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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
andreasSystem AdminCommented:
0
Defend Against the Q2 Top Security Threats

Were you aware that overall malware worldwide was down a surprising 42% from Q1'18? Every quarter, the WatchGuard Threat Lab releases an Internet Security Report that analyzes the top threat trends impacting companies worldwide. Learn more by viewing our on-demand webinar today!

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Hardware Firewalls

From novice to tech pro — start learning today.