Skip to main content
rsmayer
New Member
November 28, 2012
Question

Custom js and/or css for replacement pages?

  • November 28, 2012
  • 3 replies
  • 4209 views
Is there any way I can update custom js and/or css files to the Fortigate to be referenced in the customized Replacement pages?

    3 replies

    rwpatterson
    New Member
    November 28, 2012
    Check under ' System > Config > Replacement Messages' . I loaded mine on a public web server, and link to them from the FGT.
    rsmayer
    rsmayerAuthor
    New Member
    November 29, 2012
    Thanks for your input Bob, I can see how to update the page html in the replacment message part of the gui. The problem is that if included inline, the css and js would cause the page to exceed the size limit of 8k. So what I really want to do is add something like the following to the page html in the replacement message section: <script type=" text/javascript" href=" myjavascript.js" ></script> <link rel=" stylesheet" type=" text/css" href=" mystylesheet.css" > and then upload myjavascript.js and mystylesheet.css to the apprporiate location on the fortigate. Is that possible?
    rwpatterson
    New Member
    November 29, 2012
    I haven' t tried to upload the CSS/Java to the FGT file system. I imagine when you upgrade, you will have to re-add all that stuff back to the FGT again. This is why I chucked my code on a remote server.
      <script src=" xxx.xxx.xxx.xxx/script_name.js"  type=" text/javascript" ></script>  
    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!