How to Hide File Share and Website Panes on NetScaler Gateway Clientless Access Page

How to Hide File Share and Website Panes on NetScaler Gateway Clientless Access Page

book

Article ID: CTX120643

calendar_today

Updated On:

Description

This article describes how to hide file share and website panes from view, to give NetScaler Gateway clientless access page a look and feel similar to Web Interface.

Requirements

  • NetScaler Gateway SSL VPN virtual server configured for Clientless Access

  • NetScaler Gateway Administrator's guide for the corresponding version

  • SFTP access using WinSCP or similar application


Instructions

Hide File Share and Website Panes on NetScaler 11.x

From NetScaler 11.x you can hide File Share and Website panes my modifying the portal theme. For more information refer to Citrix Documentation - Portal Theme Customization.

OR

Add the following lines at the end of "/var/netscaler/logon/themes/Default/css/base.css" file (position does not matter):

#ctl00_fileSharesContainerCell{
    display:none;

}
#ctl00_webSitesContainerCell{
    display:none;

User-added image

Hide File Share and Website Panes on NetScaler 10.x

  1. Add the following lines at the end of "/var/netscaler/gui/vpn/images/style.css" file (position does not matter):

    #id_FileTransfer {
                    display: none;
    }
    

    User-added image

  2. Also add the following lines to the same file (/var/netscaler/gui/vpn/images/style.css):

    # ctl00_fileShares_mainDiv{
                    display: none;
    }

    User-added image

Hide File Share and Website Panes on NetScaler Version 9.x

On NetScaler Gateway, locate the homepage.html file at /netscaler/portal/templates/homepage.html:

  1. To hide the web sites panel, search for webSites_mainDiv and add style="display:none":
    OLD
    <DIV class=NUI_ContentFrame id=ctl00_webSites_mainDiv>
    NEW
    <DIV class=NUI_ContentFrame id=ctl00_webSites_mainDiv style="display:none">

  2. To hide the File Shares panel, search for fileShares_mainDiv and add style="display:none":
    OLD
    <DIV class=NUI_ContentFrame id=ctl00_fileShares_mainDiv>
    NEW
    <DIV class=NUI_ContentFrame id=ctl00_fileShares_mainDiv style="display:none">

  3. To hide the Applications panel, search for applications_mainDiv and add style="display:none":
    OLD
    <DIV class=NUI_ContentFrame id=ctl00_applications_mainDiv>
    NEW
    <DIV class=NUI_ContentFrame id=ctl00_applications_mainDiv style="display:none">

  4. To resize the first panel, search for applicationsContainerCell and make the following change:
    OLD
    style="BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; WIDTH: 33%; BORDER-BOTTOM: #999999 1px solid" align=middle>
    NEW
    style="BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; BORDER-LEFT: #999999 1px solid; WIDTH: 100%; BORDER-BOTTOM: #999999 1px solid" align=middle>

Environment

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

Issue/Introduction

This article describes how to hide file share and website panes from view, to give NetScaler Gateway clientless access page a look and feel similar to Web Interface.

Additional Information

Retain Customization Changes After Restart

All files in /netscaler/portal/ are overwritten upon a restart or power cycle. You must create a script that runs at startup to copy the modified files back to this location. The nsafter.sh or rc.netscaler shell scripts can be created or modified to accomplish this.
For example:

> shell
# mkdir /var/mods
# cp /netscaler/portal/templates/homepage.html /var/mods/homepage.html.mod
# echo cp /var/mods/homepage.html.mod /netscaler/portal/templates/homepage.html >> /nsconfig/rc.netscaler

See also CTX118305 ‑ How to Customize Access Gateway Enterprise Edition Logon Page