Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirecting Firefox to a Proxy on Localhost

For class, I have to write a basic proxy server in C.

I need to test it with firefox, and I'm not sure how to do that.

Say I have the server listening on port X-- how do I make firefox (on the same computer) send its requests there?

like image 311
temporary_user_name Avatar asked Dec 13 '25 01:12

temporary_user_name


1 Answers

To enable sending localhost traffic to a proxy in recent versions of Firefox, open about:config, search for "localhost", and set network.proxy.allow_hijacking_localhost to true.

This is in Firefox 71, and apparently was added around 67. Ran into it while trying to use Fiddler.

like image 72
PointZeroTwo Avatar answered Dec 14 '25 18:12

PointZeroTwo