i have a page on a website atht i want to restrict access to unless the visitor is coming from a specific URL
right now the page is an html page...but i dont know where to start
I DO know that a simple if...else statement could probably make this work
if (condition) {...}
else {....}
i would want the condition to be if they came from https://referringsite.com then go to http://mysite.com/specialpage.html else go to http://mysite.com/illegalattemptpage.html
get it?
does the page i want to restrict access to need to be converted to a PHP page (i.e. http://mysite.com/specialpage.php) ? How would i write/insert the code for this? anyone know of any code snippets for this functionality? Is this easy or am i delusional? I'd like to learn about it abit...I have a really good book on PHP but it doesnt discuss this particulat app...mostly it discusses using if else statement with regard to form submisson (if var=M do this else do this...)
Any help you can give would be greatly appreciated!!!
I am on a UNIX server with apache i do have php installed on server and on my comuter too...