Skip to main content
To set up an HTML MOTD (message of the day) on a FREAKHOSTING Counter-Strike: Source server, create /cstrike/cfg/motd.txt in Files, put simple HTML in it or a single line with the full URL of a web page, and restart. Players see it in the welcome window when they join. Until cfg/motd.txt exists, the server uses the game’s cfg/motd_default.txt.

Where the MOTD file goes

The file is motd.txt in the cfg folder: /cstrike/cfg/motd.txt. Not /cstrike/motd.txt. The console confirms the path at every start:
After you create the file, this line changes to your cfg/motd.txt. Don’t edit motd_default.txt: it belongs to the game and an update can replace it.

How to create an HTML MOTD

1

Open the cfg folder

In the Game Panel, click Files and open /cstrike/cfg/. See the File Manager.
2

Create motd.txt

Click New file, name it motd.txt and paste your HTML. Keep it short; see the example below.
3

Save and restart

Save the file and restart the server.
4

Check it

Join the server. The welcome window shows your MOTD. In the console you see Set motd from file 'cfg/motd.txt'.

Example HTML MOTD

The in-game browser is old. Simple HTML with inline styles works best. Avoid modern CSS layouts, heavy JavaScript, large images and video.

How to show a web page instead (URL MOTD)

The MOTD file is small. The official Team Fortress 2 wiki, for the same Source engine, gives a limit of 2 KB. For a longer page with images, host it on a website and put only its address in cfg/motd.txt:
The file must contain just that one line. The game then opens the page in the welcome window. The address must be reachable from the internet.

Players who turn HTML off

Players can turn off HTML MOTDs in their game settings. They then see a plain-text MOTD instead of your HTML page, so put your most important rules in plain words in the HTML too, not only in images.

Why the MOTD doesn’t show

Frequently asked questions

Can I use JavaScript in my CS:S MOTD?

Keep it to a minimum. The in-game browser is old and many scripts fail. A static HTML page is the safest.

Can I change the MOTD file name?

Yes, with the motdfile cvar in server.cfg, but there is no need. Using cfg/motd.txt keeps it simple.

Do I need SourceMod for an MOTD?

No. The MOTD is a base game feature. SourceMod plugins can add extra windows, but cfg/motd.txt works on its own.

Does the MOTD update without a restart?

The server reads the file at start. Restart after you edit it.

CS:S server guide

Every CS:S page in one place.

server.cfg explained

The main config file.

Game settings

Name, password and rules.

File Manager

Create and edit files.

Tested by the FREAKHOSTING team on our Game Panel on 31 October 2026 (Counter-Strike: Source dedicated server; MOTD path confirmed in the server console). Size limit checked against the official Team Fortress 2 wiki on 31 October 2026.

Need Extra Help?

If you encounter any issues, our support team is ready to assist:

Save on Your Hosting

Ready to upgrade your hosting? Use code KB20 at checkout for 20% off your first order!

Last Updated: October 2026