<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to hide the REST url in the web application ? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516544#M48187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...hide the REST URLs? ...unnecessary hits on those URLs&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You really are talking about two different, although related, issues. Others have done a pretty good job of explaining already. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Hiding the URLS, or hiding the ArcGIS Server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Avoiding the unintended use of services&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For #1, you can use a proxy on the server that changes the service from .../arcgis/rest/xxxx/mapserver to keep people from knowing the data source URL, but if the client (browser) is requesting the data they will still see how to hit your service, so not much is accomplished.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For #2, you can secure the service with a long term token tied to the website so that people can't use it in their web applications or ArcMap desktop. However, they can still get to the data either from your site and the javascript console, or faking request headers. We think we might have people that just click identify on every feature in the map to farm the secured data &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To really avoid people seeing the URLs or getting data from the service wholesale (if that is your intent), you would need to make a server-side application that requests the data server-side and then only sends them what you want them to see. They won't see where the data came from or be able to request it themselves separately. Of course a busy site will put a lot of load on the webserver.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Feb 2014 14:11:31 GMT</pubDate>
    <dc:creator>MattLane</dc:creator>
    <dc:date>2014-02-07T14:11:31Z</dc:date>
    <item>
      <title>How to hide the REST url in the web application ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516539#M48182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created basic web application for public using ArcGIS JSAPI 3.5/3.6 &amp;amp; ESRI 10.1 suit &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When user views the application then with the help of view source he can view the all REST URLs&amp;nbsp; and we are getting unnecessary hits on those URLs &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So is there any way to hide the REST URLs? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be great !!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 09:10:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516539#M48182</guid>
      <dc:creator>SunilPalkar</dc:creator>
      <dc:date>2014-02-06T09:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the REST url in the web application ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516540#M48183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;unfortunately if the app is public and the rest is public, you can't&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you could pull both your app and server internal only. Then set up a proxy that only makes your app public.&amp;nbsp; That way your application server is the only server that has access to the internal rest server&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a complicated setup and will add some additional requirements when it comes to crossdomain access, etc, but it can be made to work&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 12:57:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516540#M48183</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-02-06T12:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the REST url in the web application ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516541#M48184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;If you're using a proxy, you could set up your URLs client-side to contain placeholders, like "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://PLACEHOLDER/arcgis/rest/services/SomeService/MapServer" rel="nofollow" target="_blank"&gt;http://PLACEHOLDER/arcgis/rest/services/SomeService/MapServer&lt;/A&gt;&lt;SPAN&gt;."&amp;nbsp;&amp;nbsp; Then on the server side, evaluate the requested URL and replace PLACEHOLDER with whatever the URL value really should be.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 12:58:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516541#M48184</guid>
      <dc:creator>MattNicol</dc:creator>
      <dc:date>2014-02-06T12:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the REST url in the web application ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516542#M48185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;if you sniff the tile urls, for example, wouldnt they still have the full server address?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 14:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516542#M48185</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-02-06T14:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the REST url in the web application ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516543#M48186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The best way I know to check to see what services are being touched is not so much to look at source, but to check the Developer Tools in Chrome. (Hit F12 after entering the web site)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The network tab will show you all the network connections and files you have made/downloaded. You will probably see quite a number of downloads in the form SomeResource.com/ArcGIS/rest/services/..../MapServer. You can obfuscate your code but the application will still have to somehow communicate to the network stack what resources are needed, and those calls can be displayed in any number of ways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As soon as you say "public" you will find that there are all kinds of ways for someone to access the information in a way that you hadn't considered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to agree with jeff.pace, you will need to do something with a proxy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 12:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516543#M48186</guid>
      <dc:creator>JeffMitzelfelt</dc:creator>
      <dc:date>2014-02-07T12:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the REST url in the web application ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516544#M48187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...hide the REST URLs? ...unnecessary hits on those URLs&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You really are talking about two different, although related, issues. Others have done a pretty good job of explaining already. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Hiding the URLS, or hiding the ArcGIS Server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Avoiding the unintended use of services&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For #1, you can use a proxy on the server that changes the service from .../arcgis/rest/xxxx/mapserver to keep people from knowing the data source URL, but if the client (browser) is requesting the data they will still see how to hit your service, so not much is accomplished.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For #2, you can secure the service with a long term token tied to the website so that people can't use it in their web applications or ArcMap desktop. However, they can still get to the data either from your site and the javascript console, or faking request headers. We think we might have people that just click identify on every feature in the map to farm the secured data &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To really avoid people seeing the URLs or getting data from the service wholesale (if that is your intent), you would need to make a server-side application that requests the data server-side and then only sends them what you want them to see. They won't see where the data came from or be able to request it themselves separately. Of course a busy site will put a lot of load on the webserver.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 14:11:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516544#M48187</guid>
      <dc:creator>MattLane</dc:creator>
      <dc:date>2014-02-07T14:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the REST url in the web application ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516545#M48188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@All &amp;amp; Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply. Your suggestions are really helpful for me..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank a lot !!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 04:48:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516545#M48188</guid>
      <dc:creator>SunilPalkar</dc:creator>
      <dc:date>2014-02-10T04:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide the REST url in the web application ?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516546#M48189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess a proxy page would be the way to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jshelp/ags_proxy.html"&gt;https://developers.arcgis.com/javascript/jshelp/ags_proxy.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 07:15:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-hide-the-rest-url-in-the-web-application/m-p/516546#M48189</guid>
      <dc:creator>AndreasGomm</dc:creator>
      <dc:date>2014-02-11T07:15:25Z</dc:date>
    </item>
  </channel>
</rss>

