Can you limite this to just searching own site?

Hi, can this be made to only search own site?

I created a google custom search and selected this this option, but pasting the whole code did not work, if pasted just the pub id then i got search bar but it searched the whole web?

thanks