Copy link to clipboard
if (top == self) self.location.href = "../index.cfm";
<cfif (HTTP_REFERER DOES NOT CONTAIN "referer_page.cfm")
It works great to keep visitors (hackers?) from opening and/or trying to post to the page.
I know the JS is client side but is there anyway to create the function in the server side CF or otherwise hide from prying eyes?
I a running cf9 on my and most of my client sites.
Thank in advance
Have something to add?