I need to make it so that this can only be ran from my site. So somehow if the page header is not from my site they would get sent to the home page of the site
Something like this script does but I dont know how to make match my sites link pattern
The HTTP Referer header is unreliable. If you block users typing the URL in the address bar of their browser you will block legitimate users that do not send the Referer header.
Bookmarks