0

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?

2
  • Could you explain what do you want to acieve ? I don't understandFake IP.
    – YordanNG
    May 11, 2012 at 14:30
  • I want to web server on the host machine determined the my IP as 127.0.0.1
    – nucleartux
    May 11, 2012 at 14:47

0

You must log in to answer this question.

Browse other questions tagged .