Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how can I make a own website and the users can see my site and don't see the code?

+2 votes
asked Jan 16 by kareem step2 (180 points)

1 Answer

+1 vote
answered Jan 17 by Peter Minarik (77,930 points)

Publish a Website

Your users need to be able to access your website.

You can run a web server on your own PC and have the users know your IP to connect to it.

The common solution is though to rent a domain name and a server and upload your website there.

Hiding The Code

This is a tricky one. What do you mean by code first of all? Browsers download the website (HTML code, JavaScript code, etc) from the server and present the content rendered in the browser on the client's PC. So you cannot really hide the code. There are parts of the logic (e.g. that generates more code) that can be hidden and calculated on the server side, but ultimately, everything that you want your users to be seen needs to be downloaded by them and displayed in the browser.

Someone with actual web development experience can give you more details and maybe more tricks to hide part of your logic.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.