I have a website under development with several web services (ASMX) that send important data to my database. When I go to the ASMX file in my browser, I can fill out the form with the parameters and send it to the database. If someone finds the URL of my WS, he can greatly change my database. I want people to not be able to publish on WS WS. So far I have been thinking about two things that might help, but I would like to know if there are other ways:
- Check if the HTTP-Referrer is the WS method of the domain where WS is located
- Add an additional Key parameter to all important WS methods and this will be an encrypted "password". Then encrypt my saved password on the WS side and compare if the keys match.
If there are any other recommendations or methods that I can use to protect my WS, please share!
source share