Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fiddler: How to redirect paths from one domain to another

I want to use Fiddler to redirect URL requests from: "https://pstatic.fo.local:8088/....." to "https://127.0.0.1:8088/...."

For example, a request to "https://servername:8088/hello/world/index.html" will be redirected to "https://127.0.0.1:8088/hello/world/index.html".

I read the following post: Fiddler: Creating an AutoResponse rule to map all calls to one host to another host

and I used Rule Editor to do this redirect:

enter image description here

It didn't succeed. I also tried:

regex:https://pstatic.fo.local:8088/(.*) --> https://127.0.0.1:8088/$1

regex:https://pstatic.fo.local:8088/(.*) --> https://127.0.0.1:8088/$0

Whenever I enter the browser and type: https://pstatic.fo.local:8088/hello/world/index.html

I get the following in the browser:

Your connection is not private

Attackers might be trying to steal your information from pstatic.fo.local (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID

Do you know what I can do to make it work?

like image 717
CrazySynthax Avatar asked Jun 24 '17 09:06

CrazySynthax


People also ask

Does Fiddler act as a proxy?

Fiddler Classic and fiddler Everywhere are special-purpose proxy server tools for debugging web traffic from applications like browsers. They're used to capture and record this web traffic and then forward it onto a web server.

What is Fiddler AutoResponder?

Fiddler's AutoResponder tab allows you to return files from your local disk instead of transmitting the request to the server.

How do I check my Fiddler traffic?

In Fiddler, click the File menu. Ensure Capture Traffic is enabled.


1 Answers

The option:

regex:https://pstatic.fo.local:8088/(.*) --> https://127.0.0.1:8088/$1

is the right one.

What I had to do it enable the option of handling HTTPS requests. It can be done by: Tools-> Telerik Fiddler Optoins -> HTTPS-> tick the options "Capture HTTPS CONNECTs" and "Decrypt HTTPS traffic".

like image 61
CrazySynthax Avatar answered Oct 12 '22 09:10

CrazySynthax