Configure anonymous access to public links
These instructions apply to the following AuthMode:
Windows, Forms with Windows users.
-
Set the PublicLinkUrlPathName parameter.
If you did not specify it (empty value), then configure anonymous
access only for "Handlers/AnonymousDownload.ashx" file.
-
Open the IIS console: Control panel → Administrative tools →
Internet Information Services
-
Expand "Web Sites", "Default web site", "HTCOMNET".
-
Select the path specified in the
PublicLinkUrlPathName parameter
(if the path consists of several folders, then expand all
the subfolders in it and select the last folder in the path).
-
In the middle panel, сlick the "Authentication" feature on the central pane.
-
Enable "Anonymous Authentication" and "ASP.NET Impersonation".
Disable other items if possible
(in Forms with Windows users authentication mode Forms Authentication
items cannot be disabled).
Screenshot
-
Now you need to configure how the identity under public links will work.
-
Select "Anonymous authentication" and click the "Edit..." link
on the action pane.
In the new dialog box click the "Set" button and type the name
of the user who will have read and write NTFS permissions to all the files
you want to provide access to.
It can be a domain administrator or a special user.
Screenshot
-
Grant Read and Write NTFS permissions to the service account
(which you used in previous step as the identity for public url)
to all user files you want to provide access to.
If you plan to generate only download links (vs links that provide ability to upload files)
and if you need only viewer online services like Google Viewer,
Microsoft OWA, Zoho Edit, ShareCad
it is enough to assign Read permission to the user files.
Configure anonymous access for a Handlers/AnonymousDownload.ashx file.
Required for backward compatibility - public links created in versions 5.0.2 and below;
or if the PublicLinkUrlPathName parameter is not specified.
-
Open the IIS console: Control panel → Administrative tools →
Internet Information Services
-
Expand "Web Sites", "Default web site", "HTCOMNET", "Handlers".
-
Right-click the "Handlers" folder and select "Switch to content view" in the context menu.
In the list of files in the middle panel, select the "AnonymousDownload.ashx"
file and click the "Switch to features view" option.
Now you may change settings pertaining to the "AnonymousDownload.ashx" file.
Click the "Authentication" feature on the central pane.
-
Enable "Anonymous Authentication" and "ASP.NET Impersonation".
Disable other items if possible
(in Forms with Windows users authentication mode Forms Authentication
items cannot be disabled).
Screenshot
-
Now you need to configure how the identity under "AnonymousDownload.ashx" will work.
-
Select "Anonymous authentication" and click the "Edit..." link
on the action pane.
In the new dialog box click the "Set" button and type the name
of the user who will have read and write NTFS permissions to all the files
you want to provide access to.
It can be a domain administrator or a special user.
Screenshot
-
Grant Read and Write NTFS permissions to the service account
(which you used in previous step as the identity for public url)
to all user files you want to provide access to.
If you plan to generate only download links (vs links that provide ability to upload files)
and if you need only viewer online services like Google Viewer,
Microsoft OWA, Zoho Edit, ShareCad
it is enough to assign Read permission to the user files.