What is the best way to remove the version informations from confluence?
Asked by homeniuk:

Hi,

for security reasons, I want to remove the version from my confluence site. I have found three places on the page where the version number is displayed. Two times in the footer

```
&lt;ul id="poweredby"&gt;        &lt;li class="noprint"&gt;Gesteuert von &lt;a href="http://www.atlassian.com/software/confluence" class="hover-footer-link"&gt;Atlassian Confluence&lt;/a&gt; &lt;span id='footer-build-information'&gt;5.4.3&lt;/span&gt;, &lt;a href="http://www.atlassian.com/software/confluence/overview/team-collaboration-software?utm_source=confluence-footer" class="hover-footer-link"&gt;der Kollaborationssoftware f?r Teams&lt;/a&gt;&lt;/li&gt;        &lt;li class="print-only"&gt;Gedruckt von Atlassian Confluence 5.4.3, der Kollaborationssoftware f?r Teams.&lt;/li&gt;        &lt;li class="noprint"&gt;&lt;a href="http://jira.atlassian.com/secure/BrowseProject.jspa?id=10470" class="hover-footer-link"&gt;Fehler/Anregungen&lt;/a&gt;&lt;/li&gt;        &lt;li class="noprint"&gt;&lt;a href="http://www.atlassian.com/about/connected.jsp?s_kwcid=Confluence-stayintouch" class="hover-footer-link"&gt;Atlassian-News&lt;/a&gt;&lt;/li&gt;    &lt;/ul&gt;
```

and once in the head tag

```
&lt;meta name="ajs-version-number" content="5.4.3"&gt;
```

of the site.

On this site [https://confluence.atlassian.com/display/CONFKB/How+to+Edit+the+Footer+in+Confluence](https://confluence.atlassian.com/x/O4W9CQ) Atlassian describe that i should change the *footer-content.vm*. This is the right section in footer-content.vm :

```
&lt;ul id="poweredby"&gt;        &lt;li class="noprint"&gt;$action.getText('powered.by.atlassian.confluence',            [$action.getText('url.atlassian.software.confluence.footer'),            "&lt;span id='footer-build-information'&gt;$generalUtil.versionNumber&lt;/span&gt;",            $action.getText('url.enterprise.wiki.footer') ])&lt;/li&gt;        &lt;li class="print-only"&gt;$action.getText('printed.by.atlassian.confluence',["$generalUtil.versionNumber"])&lt;/li&gt;        &lt;li class="noprint"&gt;&lt;a href="$action.getText('url.bug.feature.request')" class="hover-footer-link"&gt;$action.getText('bug.feature.request')&lt;/a&gt;&lt;/li&gt;        &lt;li class="noprint"&gt;&lt;a href="$action.getText('url.footer.atlassian.news')" class="hover-footer-link"&gt;$action.getText('footer.atlassian.news')&lt;/a&gt;&lt;/li&gt;    &lt;/ul&gt;
```

<br />

First of all I remove this line:

```
"&lt;span id='footer-build-information'&gt;$generalUtil.versionNumber&lt;/span&gt;"
```

In the next step I want to remove the second parameter of *getText()* , this works for me, but I'm not sure if this the right way. Maybe I should only replace *\["$generalUtil.versionNumber"\]* with an empty string ""?

```
&lt;li class="print-only"&gt;$action.getText('printed.by.atlassian.confluence',["$generalUtil.versionNumber"])&lt;/li&gt;
```

Last but not least, I have no idea how I get out the version from the head area.

EDIT:

Ok, I think the footer should look like

```
&lt;ul id="poweredby"&gt;        &lt;li class="noprint"&gt;$action.getText('powered.by.atlassian.confluence',            [$action.getText('url.atlassian.software.confluence.footer'),            "",            $action.getText('url.enterprise.wiki.footer') ])&lt;/li&gt;        &lt;li class="print-only"&gt;$action.getText('printed.by.atlassian.confluence',[""])&lt;/li&gt;        &lt;li class="noprint"&gt;&lt;a href="$action.getText('url.bug.feature.request')" class="hover-footer-link"&gt;$action.getText('bug.feature.request')&lt;/a&gt;&lt;/li&gt;        &lt;li class="noprint"&gt;&lt;a href="$action.getText('url.footer.atlassian.news')" class="hover-footer-link"&gt;$action.getText('footer.atlassian.news')&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
```

Any objections?


Answers:
author: Rodrigo Girardi Adami
body: Hi!

I believe that you are in the correct path. If you remove the `$generalUtil.versionNumber` it won't call the confluence version as well. Test these changes and always backup the original file in case you need to restore it.

Cheers,

Rodrigo


Tags: confluence-administration

footer

version