How to hide part of the site's source from the user's view - Forum

Forum Navigation
You need to log in to create posts and topics.

How to hide part of the site's source from the user's view

How to hide a piece of site code from the user! I have a code that contains the username and password of another system to communicate with it! I want to hide from the user! Thank you for your help ...

@javadrajabihakami that's not possible. You shouldn't hardcode passwords or usernames on client side.

javadrajabihakami has reacted to this post.
javadrajabihakami
Quote from luishp on December 22, 2021, 1:32 pm

@javadrajabihakami that's not possible. You shouldn't hardcode passwords or usernames on client side.

I designed from within the site with a lovely visual! I have to go to another site! That username and password are fixed! But some parameters must be taken from the user and through the url or anything else I must be able to point to the url to run ...! Now I do not want this user-made url to be seen! Is this possible?

This is the way it works in most sites:

  • Add an Input Text  and a Password Input objects for user and password into a Form Object.
  • Set the "action" Form property to the target .php script URL for validation.
  • The .php script then search in the database for a match and sends back the desired information or an error.

The database YouTube tutorial does something like that.
Sending username and password in the URL is a bad practice.

Regards.

javadrajabihakami has reacted to this post.
javadrajabihakami