SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2004
    Location
    world
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up run script for a specific domain

    Hi,
    I want to encrypt a script that only run on a specefic domain.
    for example the my domail is www.demo.com
    and the script in /www/myfolder/myscript.php
    myscript.php will check whether it running on www.demo.com or not .
    if not it wil give a error .

    I tried

    PHP Code:

      $referer 
    $_SERVER['HTTP_REFERER'];
      echo 
    $referer
    but it shows nothing

    Please help

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The domain should be in $_SERVER['HTTP_HOST']

  3. #3
    SitePoint Zealot
    Join Date
    Oct 2004
    Location
    world
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks a lot

  4. #4
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're welcome


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
  •