Question might sound impossible but I'm still serious. Downloaded a plugin for firefox called "Modify Headers" (https://addons.mozilla.org/de/firefox/addon/modify-headers/).

Set it up like that:

Select Action: Add
Header Name: X-Forwarded-For
Value: Enter any IP address here.
Add this and press start.

Now go to https://www.iplocation.net/find-ip-address or some other site and you will see that your original ip has changed without the use of proxy.

However, this doesn't work on all / many sites, but still, maybe there is a better way doing this so it works on all sites?

No, and you're not even changing your IP address with the method you've outlined - you're effectively claiming that you're a proxy for whatever IP address you provided in that header. It might work to fool some basic analytics tools, but your IP address would still be available to whatever servers you connect to (they'd need it to know where data should be going), and it wouldn't fool any authorities who wanted to track activity back to you.

The X-Forwarded-For HTTP header informs the website that you are making the request on behalf of the IP address you put into the X-Forwarded-For field. By faking this field, you are essentially lying that you are making the request on behalf of someone else. While the website can choose to believe this if they wish, you are still making the request with your real IP address and your real address is likely still being logged, even if it looks like you fooled them.

Though you can spoof an IP address as well, it is difficult to accomplish anything of note with a spoofed IP address other than denial-of-service attacks. This is because TCP requires two-way communication, and if you spoof your IP address, responses from the server won't make it back to you.

One way you could accomplish this is through the use of raw sockets

  • link-only answers are discouraged – schroeder Jan 4 '17 at 18:16
  • This would potentially be effective for a DDOS, but if you actually want to use the website you'd be pretty well out of luck with this approach. – demize Jan 4 '17 at 18:20

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.