Not signed in (Sign In)
Welcome, Guest!

Did you know you'll have to sign to join the discussions? If you have an account, sign in now. If you don't, register – it's easy and free.

Bottom of Page
Improve Site or Forum: Stop people dropping directly to request page
  1.  
1 to 2 of 2
Apr 12th 2007 edited
Hi Eric,

I received your email and a) withdraw my request for a DVD b) have a suggestion on how to stop the freebie sites dropping people directly on the form page.

A simple bit of PHP code on the form page will do it.
At the very top, making sure it is inside a set of delimiters, place the following

if($_HTTP_REFERER != "https://sharethetruth.us/index.php"){
header("Location:index.php");
}

It simply says "if the person hasn't come from the index page, send them there".

Just an idea...
Apr 12th 2007
Hey microbe,

Thanks for the tip! I will do this.*


* (tech note) Except, rather with Perl's redirect function and also with a cookie, because I don't want to handicap all inbound links in the event of repeat visitors. I'd also like to run a few tests to ensure that the original referrer is preserved, which is definitely useful information.
  1.  
1 to 2 of 2
Top of PageBack to discussions