rverton / webanalyze

Port of Wappalyzer (uncovers technologies used on websites) to automate mass scanning.
MIT License
908 stars 134 forks source link

`fetchHost` doesn't follow redirects #35

Closed przmv closed 3 years ago

przmv commented 3 years ago

I'm wondering about the decision of not following redirects with http.Client within fetchHost function: https://github.com/rverton/webanalyze/blob/master/webanalyze.go#L105

Following HTTP redirects is crucial for our use case.

What do you think about adding the ability to provide some custom http.Client to NewWebAnalyzer?

I'm going to submit a pull request to better describe the idea.

rverton commented 3 years ago

Hi @pshevtsov, following redirects often led to leaving the target scope/environment.

I'm open to make this more configurable if you need it.

Greetings

przmv commented 3 years ago

@rverton PTAL #37