Can items in a locked folder be accessed by an alias?

is there any script that can lock the folder but the items inside the folder can be access through alias

Are you asking to make it so that a folder cannot be opened? You might want to create a script that constantly tells the Finder to close the Window with a certain name. Of courseā€¦ that might be a problem if you have other folders with the same name.