SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Referrer Check

  1. #1
    SitePoint Zealot
    Join Date
    Sep 2000
    Location
    Seattle, WA area
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How can I check (using PHP) that the user used the form on my site to submit the data and that they're not using a form on their site to just POST data to my site?

    Thanks.

  2. #2
    SitePoint Enthusiast poil11's Avatar
    Join Date
    Aug 2000
    Location
    it look me along time to do that...
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    if (eregi(youdomain.com,getenv('HTTP_REFERER'))) {
    do stuff
    }
    else {
    echo "you can't do that sucker";
    }
    something like that, you might need to put quotes around yourdomain.com
    I will Tell you what is wrong with your website and maybe what you can do to make it better.
    Professional Web Site Reviews ... Usability ...
    Contact Me god@stillsucks.com for more information ...
    look at my other reviews, to see what i have done.

  3. #3
    SitePoint Zealot
    Join Date
    Sep 2000
    Location
    Seattle, WA area
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. That worked great.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •