I am trying to hide my WCF as much as I possibly can. If some one enters the url to my WCF, they are displayed the response "Endpoint not found". If they try a get request, they are displayed with method not allowed because my service only accepts post requests.
I already have the following included in my web.config
<behaviors>
<endpointBehaviors>
<behavior name="webBehavior">
<webHttp helpEnabled="false" />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="Default">
<serviceDebug includeExceptionDetailInFaults="False" />
<serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" />
</behavior>
</serviceBehaviors>
</behaviors>
I would like to display no response unless they have the exact url and exact post parameters. I am not sure if I need to alter my "Custom error section". My understanding is custom errors is only for when an exception is thrown. Endpoint not found and method not allowed is not an exception.
Any help or suggestions would be greatly appreciated.