Legacy Knowledge Base
Published Sep. 10, 2025

Disabling the WebDAV URL from Portal through portal-ext.properties

Written By

Sivakumar Perumal

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • If any of the users in the portal knows the WebDAV URL, they can configure the same at their end and they can manage the Document Libraries from their local machine itself. Hence, how can the WebDAV URL be restricted?

Environment

  • Liferay 6.2 EE

Resolution

  • Liferay has provided the property to restrict the access of the WebDAV URL by configuring the below property in portal-ext.proeprties.

    #### WebDAV Servlet

    # See the properties "main.servlet.hosts.allowed" and

    # "main.servlet.https.required" on how to protect this servlet.

    webdav.servlet.hosts.allowed=
    When you looked at the above mentioned "main.servlet.host.allowed" the definition is as follows

    # Input a list of comma delimited IPs that can access this servlet
    # Input a blank list to allow any IP to access this servlet
    # SERVER_IP will be replaced with the IP of the host server


    For ease:

    webdav.servlet.hosts.allowed=127.0.0.1

    After adding the above property, the WebDAV URL will be accessible only to the above mentioned IP address.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base