It depends what your goal is - if you don't want anyone to see/use/edit your code at all, don't make it public and write your own closed source license.
If you just don't want people to claim your code as their own then a "copy-left" license is probably what you want. Jmaus post and link is probably the best - dev.to/jmau111/comment/2082h
You have to search for open source licenses.
You can readmore here
Hey, which license would you recommend to prevent users from copying the projects and publishing them as their own?
It depends what your goal is - if you don't want anyone to see/use/edit your code at all, don't make it public and write your own closed source license.
If you just don't want people to claim your code as their own then a "copy-left" license is probably what you want. Jmaus post and link is probably the best - dev.to/jmau111/comment/2082h
I'm sorry to read that @sadeedpv
I'd use GPL 3. They need to refer tonand keep they project opensource. Otherwise private way it's.... =\