Quote:
Is there any script to check if code is from internet
No, because absolutely any code can come from internet.
This activity is related to 'source code plagiarism detection' which involve a source code database, but all code on internet is absolutely monstrous.