Select to view content in your preferred language

ArcGIS Server Feature/Map Service Referenced Services -- disable query

338
1
Jump to solution
04-08-2026 06:25 AM
MikaelJ
Regular Contributor

Hey,

 

is it possible to disable query in REST (HTML and JSON format) and in ArcGIS Pro for publicly facing data in ArcGIS Enterprise 11.5, but keep data available for ExB apps.

I am aware of 

a) disabling REST endpoint (HTML only)

b) readding the service to the portal and embedding the credentials in the item as mentioned here:

https://community.esri.com/t5/arcgis-online-ideas/prevent-data-download-export-from-agol-public/idi-...

 

are there any other ways of overcoming this?

 

Regards,

Mikael

 

0 Kudos
1 Solution

Accepted Solutions
TanuHoque
Esri Regular Contributor

 

It all depends on what your end goal is. Here are a few options that I can think of:

a) Disable Service Directory:
You might be aware of this option where you can disable anyone from accessing the Service Directory. But that won't prevent one with url from accessing your data.

https://enterprise.arcgis.com/en/server/latest/administer/linux/disabling-the-services-directory.htm

 

b) Disable 'data' mapping capability:

You can disable 'Data' mapping capability that will prevent anyone from submitting any query request.

https://enterprise.arcgis.com/en/server/latest/publish-services/linux/edit-map-service-settings.htm#... 

... that also means that you can't add a layer off a map service as a 'feature layer' to your web app including ExB. You must add the service as a 'map image layer'.

At that point, the popup would still work, as the popup will use the /identify operation. But no one can bulk download your data very easily. And if you try to open 'table' for a sublayer from the map image layer, it won't work. Charts and some other widgets might not work.

 

c) Turn off 'query' mapping capability:

just like (b) you can also turn off query capability that will prevent anyone making /identify request. This prevents one from accessing your data entirely. You can still add that service as a 'map image layer'; features will draw fine on the map; but you won't see any popup.

With this option you will only be able to visualize features on the map. Nothing else can be done.

 

I hope this helps.

 

View solution in original post

0 Kudos
1 Reply
TanuHoque
Esri Regular Contributor

 

It all depends on what your end goal is. Here are a few options that I can think of:

a) Disable Service Directory:
You might be aware of this option where you can disable anyone from accessing the Service Directory. But that won't prevent one with url from accessing your data.

https://enterprise.arcgis.com/en/server/latest/administer/linux/disabling-the-services-directory.htm

 

b) Disable 'data' mapping capability:

You can disable 'Data' mapping capability that will prevent anyone from submitting any query request.

https://enterprise.arcgis.com/en/server/latest/publish-services/linux/edit-map-service-settings.htm#... 

... that also means that you can't add a layer off a map service as a 'feature layer' to your web app including ExB. You must add the service as a 'map image layer'.

At that point, the popup would still work, as the popup will use the /identify operation. But no one can bulk download your data very easily. And if you try to open 'table' for a sublayer from the map image layer, it won't work. Charts and some other widgets might not work.

 

c) Turn off 'query' mapping capability:

just like (b) you can also turn off query capability that will prevent anyone making /identify request. This prevents one from accessing your data entirely. You can still add that service as a 'map image layer'; features will draw fine on the map; but you won't see any popup.

With this option you will only be able to visualize features on the map. Nothing else can be done.

 

I hope this helps.

 

0 Kudos