Client action security

Goodday all ,

I got a warning that I am exposing a server action to the public.

I then 

1.Called my screen action that gets user input from a widget

2. Called a Client action receiving user input  and assign input to variable and also generating variable "X" (with JavaScript)

3. Call a Server action receiving Client action variables

4. Server action interacts with the DB

Now the warnings are gone. 

I Just want to confirm by you pro's if this is now more secure to attacks or intercepting the variable "X" in Client Action.

Thank you ,


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.