Help for this page

Select Code to Download


  1. or download this
    sub check_url {
    
    ...
        # If the HTTP_REFERER was invalid, send back an error.            
    +       #
        if ($check_referer != 1) { &error('bad_referer') }
    }
    
  2. or download this
        local($check_referer) = 0;
        my $refhost = $ENV{'HTTP_REFERER'};
    ...
    
        # If the HTTP_REFERER was invalid, send back an error.            
    +       #
        if ($check_referer != 1) { &error('bad_referer') }