Open Php Page Only When It Comes From Selected Referers

I want a single php file which will open only when it is requested from a list
of selected referers (at the time I want only two referers)..

For your information my website is not included in the referers..

The script should work on all browsers..

So here is how it should work.. Lets say the two referers are:

www.mywebsite1.com

www.mywebsite2.com

So when the php file is requested from the above two websites it
should present some content..

When there is any other request from anywhere else, especially
direct request, it should present a message that the page was not found..

if check_referers {

present_some_content

}

else {

Page_not_found

}

Also a way to bypass the check (this is for me) must be provided..

Again.. Script should work on all browsers..

This is just a few lines of code so place your bid accordingly

Leave a Reply

Your email address will not be published. Required fields are marked *