Skip to main content
Level 2
May 1, 2023 5:08 PM UTC
Solved

authentication url in publisher

Hi

 

I want .model.json(pages) production url, access via authentication for avoiding webcrawler.

 

Can i know possible solution?

 

@Vijayalakshmi_S

 

My server is AEM 6.5 

 

Thanks

Dillibabu

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Vijay_Katoch
Vijay_KatochAccepted solution
Community Advisor
May 2, 2023 5:42 AM UTC

2 replies

Vijay_Katoch
Community Advisor
Vijay_KatochCommunity AdvisorAccepted solution
Community Advisor
May 2, 2023 5:42 AM UTC
fmateen
Level 2
Nov 26, 2023 4:43 PM UTC

Did you explore, restricting the access via closed user group for the particular URL? 

Basically you have to update the permissions to deny "anonymous" access and allow only a specific user group to access it. Please check https://experienceleague.adobe.com/docs/experience-manager-65/administering/security/cug.html?lang=en

 

The second option is to restrict the access particular URLs at apache httpd (dispatcher) server via htaccess file by creating a rule similar to mentioned below

 

SetEnvIf Request_URI ^/YOURURL auth=1


AuthType Basic
AuthUserFile "/etc/httpd/.myhtpasswd"

# first, allow everybody
Order Allow,Deny
Satisfy any
Allow from all
Require valid-user
# then, deny only if required
Deny from env=auth

 

Translate