How to disable direct IP access to the journal

Describe the issue or problem
Please tell us what happens and what you expected to happen.

my journal can be accessed by domain name or IP address.
how to disable direct IP access??
fig1. can be accessed by ip.
fig2: Bing/Google shows the ip address related page.this is not what i want.

Hi @yhangde,

This is not so much an OJS question, but rather related to software that you run on your server like apache, so it is outside of the scope of what we cover here in the forum. You might find more helpful advice on this by searching the open web and through resources like stack overflow:

PKP Team