I have a website running well, listening on port 8069 (let's say mywebsite DOT com:8069)
I'd like to prevent users from accessing it directly with an htaccess for instance.
For some reason (it's an Odoo python script listening on this port), I can't directly use an htaccess file so I would like to use nginx as a reverse proxy :
[users] <---> my-nginx-proxy DOT com:80 <----> /mywebsite DOT com:8069
Is it possible to filter direct traffic on port 8069 with iptables on mywebsite.com AND allow indirect traffic from nginx reverse proxy ?
If so, how ? Since I shall then just use an htaccess on my-nginx-proxy.com
Thanks for your help