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

if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
))) {
    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?

  • 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
    – nucleartux
    May 11, 2012 at 14:47


You must log in to answer this question.

Browse other questions tagged .