Hello, this is my 1st thread here and i don't know if this is the correct sub-forum for my question.. I want to how to mask other domain with public ip address, like this. target domain example.com my server public ip 123.123.123.123 example.com using cloudflare and i don't have access to its server when i browser http:\\123.123.123.123 it show example.com content and the link served in example.com changed to public ip address. what i've done is using nginx reverse proxy, it work like what i want but when i to proxy_pass example.com and proxy_header host $host it show cloudflare error "1003 Direct IP Access Not Allowed". but if i use my other server asd.com with public 111.111.111.111 and my nginx setting proxy_pass example.com and proxy_header host $host i can show all the content inside with no problem, because i use direct ip.. so, is there anyway to do it? i see many websites using that technique but i only know reverse proxy and been working on it few days, still no solution.
Only if you are in control of both domains, you can use alias. Otherwise, you shouldn't do it as I think it is illegal.
yes, i always use alias if both domain i manage... but for this one, i only have access to its content.. i bought their service and got admin access but not server and cloudflare access.. my domain always got blocked by our ISP and must buy many domains it maintain our website.. so i thought if it is possible to use reverse proxy method but using public IP address, since using IP is more durable from blocking than use domain name. i know this method is illegal, but it is ok as long as i use it for my own website, right?
If you own them, no problem but full server access is normally needed to ensure the masking works properly.