Expand my Community achievements bar.

SOLVED

authentication url in publisher

Avatar

Level 3

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

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Level 3

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=e...

 

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