Is there any way to do such a thing like robot txt or htaceess ?
No, it’s not possible.
The only thing you can do is to obfuscate html and css, this way the ripped html is useless.
If you include local path as allowed, you will go fun answering supports questions as “my site works on local, but does not when uploaded to my server” (along with the non-purchased badge). Open a beer each time you get this kind of message.