Raised This Month: $51 Target: $400
 12% 

CS:S quick whitelist question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Solid lad
Senior Member
Join Date: Oct 2018
Old 01-08-2019 , 09:24   CS:S quick whitelist question
Reply With Quote #1

Hy!
Can I add folders to my "pure_server_whitelist.txt" like this?

{
materials\lvl_overlays\... any
materials\overviews\... any
materials\custommaterials\... any
}

I'm not sure, because the only examples given in "pure_server_whitelist_example.txt" look like this:

// Three types of file specifications:
//
// 1. directory\*.* - refers to all files under the directory
// 2. directory\... - refers to all files under the directory and all directories under that (recursively)
// 3. directory\filename - refers to a single file
The Solid lad is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-08-2019 , 10:09   Re: CS:S quick whitelist question
Reply With Quote #2

yes

*make sure your use one code block.

Code:
whitelist
{
	// Example custom server whitelist.
	//
	// Do not modify this file.  Instead, rename this file to "pure_server_whitelist.txt" and then modify it as appropriate.
	//
	// sv_pure values are in order of "increasing pureness":
	//
	//   -1: No restrictions.  Allow clients to load any files.
	//    0: Only load pure_server_minimal.txt.
	//    1: Load pure_server_full.txt, followed by pure_server_whitelist.txt (the custom file).
	//       Also, in this mode, the server may specify additional public keys that it considers to be trusted.
	//    2: Load pure_server_full.txt only.
	//       In this mode, user only the public keys listed in trusted_keys_base are used.
	//
	// If multiple rules apply to the same file, then the rule listed later (or from the file loaded later) takes priority.
	// Therefore, because the custom whitelist file is loaded last, after a fully pure whitelist has been loaded, typically
	// the custom whitelist file is used to carve out exceptions (where the server wants to be more permissive), rather than
	// listing the files that are requested to be.
	//
	// 2 different rule types may be used:
	//
	//	trusted_source - require file to be loaded from a "trusted source".
	//                   A trusted source is a VPK that is signed with one of the public keys listed
	//                   in trusted_keys_base.txt or trusted_keys.txt.
	//	any - Client can use file from any source.
	//
	// For historical purposes, the following strings are also allowed:
	//
	//	allow_from_disk           - same as "any"
	//	from_steam                - same as "trusted_source"
	//  check_crc                 - same as "trusted_source"
	//  allow_from_disk+check_crc - same as "trusted_source"

	//
	// Three types of file specifications:
	//
	//	1. directory\*.*			- refers to all files under the directory
	//	2. directory\...			- refers to all files under the directory and all directories under that (recursively)
	//	3. directory\filename		- refers to a single file


	
	materials\lvl_overlays\...	any
	materials\overviews\...		any
	materials\custommaterials\...	any
	
}

Last edited by Bacardi; 01-08-2019 at 10:11.
Bacardi is offline
The Solid lad
Senior Member
Join Date: Oct 2018
Old 01-08-2019 , 14:16   Re: CS:S quick whitelist question
Reply With Quote #3

Ok, thanks Bacardi!
The Solid lad is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode