title: IP address spoofing/changing for testing on local machine
body: <p>I am trying to limit traffic to my website so that people trying to screenscrape mass amounts of data will be blocked after a while. I am supposed to do this based on the IPs of incoming requests. I believe I have the IP-limiting functionality written but, I'm stumped on how I can test it. I need to be able to change my IP address many times, to simulate valid traffic. I also need to test >20 different IPs, so a proxy solution for each one will not work for me.</p>
  
  <p>I am testing the code on my local machine (running Ubuntu) so I can change my server settings (Apache) if I need to for this test.</p>
  
  <p>I'm behind a corporate network so I cannot change MAC address/ARP settings to be "re-assigned" a new IP. I was hoping for some sort of localhost IP-changing type thing, so I could take advantage of the fact that the server and client were the same machine.</p>
  
  <p>Also, I was trying to avoid changing the code before it is rolled out to production servers, but that may be the best way to do it.</p>
  
  <p>How can I set this up?</p>