dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Hotlinking

  1. #1
    Join Date
    Dec 2003
    Posts
    26

    Hotlinking

    Hello all,

    there is a feedback form on my website, say on mydomain.com.

    I want that form to be used on mydomain.com

    I mean I dont want anyone to save that form on their own webspace and post it on my domain for processing using my files.

    $_ENV['REFFERER'] returns the complete URL but I want to check particularly the domain name.

    can anyone please write some code for me?

    Thanks!

  2. #2
    Join Date
    Dec 2003
    Location
    Netherlands
    Posts
    642
    Hallo,

    use .htacces in the folder where the script is placed. You serverside script will be processed with out a password.

  3. #3
    Join Date
    Dec 2003
    Location
    Netherlands
    Posts
    642
    or use this :

    if ($_SERVER['HTTP_REFERRER'] == "your script path") {
    execute the script;
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles