mrdiscourse reported discovering that their Discourse site (http://www.aibuapp.com/) was being impersonated by a third party (http://labthi.ng/), causing Bing Webmaster Tools to flag an unauthorized backlink. Despite deactivating the ‘allow same origin’ plugin, the issue persisted. Rodelio_Lagahit suggested checking DNS and hosting configurations, noting the other party was likely pointing their domain to the same server. mrdiscourse confirmed the host was aware but asked how to block the traffic. codinghorror suggested this requires a core fix to ensure the site only responds to its official domain. mpalmer recalled a past solution involving modifying the Nginx config to create a separate default site, while fefrei noted a similar case on Meta without recalling the resolution. fantasticfears provided an Nginx code snippet to redirect traffic from unauthorized domains to the official one using environment variables, recommending the use of SSL and Let’s Encrypt templates. sam declared the issue solved by advocating for the free Let’s Encrypt template, which he claimed resolves the problem 100%. mrdiscourse asked for implementation details, and Falco provided a link to the official guide on setting up Let’s Encrypt with Discourse Docker.
kindly check your host/domain provider as well. They might be able to look into the config/settings why is your site pointing to another domain simultaneously.
Yes I contacted them. They said this other person is pointing their domain to the server. Why would they even bother doing that?? What’s a foolproof and easy way to block traffic from their domain?
I don’t have the topic reference to hand, but it was given to me to rummage around and try to munge the nginx config to setup a separate default site. Never quite got around to actually doing it, though.