• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Host

SaadPro

Member
Joined
Dec 25, 2022
Messages
37
Reaction score
18
Location
Egypt
Is there a way to separate the site and server into two hosts
To protect site from attack
Site in host \ server in host
Explain step by step
 
Of course there is a way, preferably it is to acquire both machines under the same provider, which are as close as possible to each other and you must configure the connection to the database allowing connections to it (machine 1) from the outside, you must configure a mysql user and a password for that and allow configuration only from the IP of machine 2, machine 1 would be the main host (Host 1) with the Server and the Database.

Machine 2 (host 2) would have the website configured to be able to connect to machine 1. That's all.

Together with cloudflare on machine 2 you can limit connections only to the PHP server port 80 only for cloudflare IPs, as well as on machine 1 block all connections except for the connection game ports and the mysql database port.
 
Of course there is a way, preferably it is to acquire both machines under the same provider, which are as close as possible to each other and you must configure the connection to the database allowing connections to it (machine 1) from the outside, you must configure a mysql user and a password for that and allow configuration only from the IP of machine 2, machine 1 would be the main host (Host 1) with the Server and the Database.

Machine 2 (host 2) would have the website configured to be able to connect to machine 1. That's all.

Together with cloudflare on machine 2 you can limit connections only to the PHP server port 80 only for cloudflare IPs, as well as on machine 1 block all connections except for the connection game ports and the mysql database port.
Can u help when i connect cloud flare to my host, it prevents players from connecting to the game
 
Last edited:
you have to register www for proxied and direct not or make like s1.servername.com as ip aswell not proxied dns A record
 
Back
Top