I was told even when we cannot patent the code, there is a copyright or intellectual property on it. But what can we do with that? is that protecting from someone else using the code?
If yes, what are the legal tools to act on some site using that code?
Because I can also think in different scenarios:
Javascript code, without modification: if some site is copying the code is easy to check, code is visible
Javascript code, modified (minified, obfuscated, or some minor changes to the code)
Backend code, without modification: in this case we don't have access to it, how can we know if they are using our code then?