title: How can you hide the fact your server has a WCF service located at MyService.svc
body: <p>Is there a way to serve up a custom "Sorry not found" page from a direct access request to a WCF Service (.svc file) on a server running IIS 6.0, and .NET 3.5 SP1.</p>
  
  <p>I have a requirement that my service in a Production environment is not discoverable. The requirement states that WSDL publishing should be off, and the request also states that when directly accessing the MyService.svc file via a HTTP Get Request that a "Sorry Not found" page is displayed instead.</p>
  
  <p>I have no problem disabling the metadata in the config file.</p>
  
  <p><code>&lt;serviceMetadata httpGetEnabled="false" /&gt;</code></p>
  
  <p>But I can't figure out a way to not show the default .svc page.</p>
  
  <p><strong>SERVICE</strong><br>
  This is a Windows© Communication Foundation service.</p>
  
  <p><strong>Metadata publishing for this service is currently disabled.</strong></p>
  
  <p>If you have access to the service, you can enable metadata publishing by completing the following steps to modify your web or application configuration file:
  ...</p>
  
  <p>** Also posted at <a href="https://serverfault.com/questions/78890/how-can-you-hide-the-fact-your-server-has-a-wcf-service-located-at-myservice-svc">ServerFault</a>.</p>