How Do I Block A Certain IP From Accessing Confluence?

Still need help?

The Atlassian Community is here for you.

Ask the community

Error rendering macro 'viewport-redirect'

Only pages and blog posts are supported as redirect target.

  1. Navigate to ConfluenceInstallationDirectory/conf
  2. Edit server.xml
  3. Add these lines in between the <Context> tags:

    <Valve className="org.apache.catalina.valves.RemoteAddrValve" deny="10.60.2.37"/> 

    Just replace the IP address accordingly. Should look something like this:

    <Context path="/c512" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
                        <!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
                        <Manager pathname="" />
                         <Valve className="org.apache.catalina.valves.RemoteAddrValve" deny="10.60.2.37"/> 
                    </Context>
  4. Restart Confluence
Last modified on Dec 20, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.