How to change HTTP_REFERER using perl?
        Posted  
        
            by 
                zuqqhi2
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by zuqqhi2
        
        
        
        Published on 2012-11-15T09:34:02Z
        Indexed on 
            2012/11/15
            11:07 UTC
        
        
        Read the original article
        Hit count: 413
        
perl
|http-headers
I tried to change log format and change HTTP_REFERER using perl to change browser's referrer like below.
[pattern1]
Log Format : %{HTTP_REFERER}o
perl       : $ENV{'HTTP_REFERER'} = "http://www.google.com";
[pattern2]
Log Format : %{X-RT-REF}o
perl       : addHeader('X-RT-REF' => "http://www.google.com");
[pattern3]
Log Format : %{HTTP_REFERER}e
perl       : $ENV{'HTTP_REFERER'} = "http://www.google.com";
but they didn't work. How can I do it? If you have any idea please teach me. Note that I just want to do this as a countermeasure for illegal access in my intra tool.
© Server Fault or respective owner