I'm posting it here because I really don't know what script can make this possible. Is there anyway that i can give condition based on what site the visitor came. For example, If (the visitor came from www.yuukoweb.com) { show this } else { show this } PHP: Is this possible? And can you tell how?
Hi, you want to look at getting the referer of the website So something like this (I do C# not PHP so this mat not be 100% accurate but will give you an idea) if(isset($_SERVER['HTTP_REFERER']) =="www.mywebsite.com") { // Show this } else { // show this } Code (markup):
if ($_SERVER['HTTP_REFERER'] == "http://www.domain.com/") { echo "You came from domain.com! Accepted."; } else { echo "Sorry, page content visible only for those who came from domain.com!"; exit(); } PHP:
Thanks. Now another question. How can i try to prevent direct traffic from a specific page in my site. Example. if (you type in your browser directly www.mydomain.com) { you will be redirected to a certain page } else { you can enter } Code (markup): Is this possible?