klzgrad / naiveproxy

Make a fortune quietly
BSD 3-Clause "New" or "Revised" License
6.68k stars 885 forks source link

[Question] Choosing between file_server and reverse_proxy in Caddyfile for camouflaging #512

Closed alphajoza closed 1 year ago

alphajoza commented 1 year ago

For camouflaging naiveproxy, in your example Caddyfile, you've used file_server to serve a sample html website (at /var/www/html). There are other examples in web that are using reverse_proxy to a known website (for example www.bing.com) for that purpose.

excerpt:

reverse_proxy  www.bing.com  {
   header_up  Host  {upstream_hostport}
   header_up  X-Forwarded-Host  {host}
  }

Given the nature and design goals of NaïveProxy, which one is more preferable?

klzgrad commented 1 year ago

Use your own blog, or e commerce websites as the front. Reverse proxying to bing.com creates a failed parrot: there is no change bing.com actually appears on your IP address.