Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have apache installed on the guest machine. But in many scripts I have following condition:

if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
    '127.0.0.1',
    '::1',
))) {
    header('HTTP/1.0 403 Forbidden');
    exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}

Can I make a fake IP in Apache or Virtualbox?

share|improve this question
    
Could you explain what do you want to acieve ? I don't understandFake IP. –  Joleng May 11 '12 at 14:30
    
I want to web server on the host machine determined the my IP as 127.0.0.1 –  nucleartux May 11 '12 at 14:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.