Commit Graph

82 Commits

Author SHA1 Message Date
Pierce Lally
be7f5b520b
use url encoding instead base64 (#37) 2023-09-01 15:54:17 -04:00
Pierce Lally
74f9be20b2
only respective configs if starfall or mediaplayer is on the server (#35)
* only respective configs if starfall or mediaplayer is on the server

* check for addon existence by entity file
2023-08-27 18:31:18 -04:00
Pierce Lally
609f7ea083
Replace html urls (#33)
* replace urls in html and javascript with safe urls

* remove file

* remove temporary wrap functions

* remove most starfall domains

* apply CFCHTTP.RedirectURL to OpenURL wrap

* use concat and not string.format
2023-08-23 18:15:44 -04:00
Pierce Lally
05c24b719f
Revert setting wrapHTMLPanels = true by default 2023-08-21 21:37:34 -04:00
Pierce Lally
fef959f369
update default whitelist config adding starfall and media player (#31) 2023-08-17 21:55:07 -04:00
Redox
d2f18c5d6b
Add discord media (#28) 2023-08-17 11:13:26 -04:00
Pierce
4733bf1de8
hotfix save button for config 2023-08-14 22:16:29 -04:00
Pierce Lally
13e6c8ef80
Handle IDN domains and add tests (#27)
* add tests and move files to shared

* use CFCHTTP.ParseURL in getAddress

* change url in tests

* add tests to github actions

* rename test file and update function calls to moved functions

* minor config loader refactor

* whitespace changes

* rename file -> configFile

* add invalid date test cases for address parsing functions
2023-08-12 17:50:24 -04:00
Pierce Lally
bc46b35654
Patch methods used to bypass whitelist (#24)
* add code to handle pls files

* add PlayURL file data inspecting before playing

* add filetypes.lua

* fix bugs with file url fetching

* naming changes

* allow non recognized filetypes

* update config

* change function names

* dont redefine locals

* hot fix html wrapping

* wrap RunJavascript and apply html url checks

* Remove debug print

* dont log javascript when no urls are found

---------

Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
2023-08-11 17:26:05 -04:00
Redox
4a446a857f
Add steam CDN and developer URLS (#25)
* Add steam cdn urls

* Linter style

* Add steam dev community
2023-08-11 17:05:30 -04:00
plally
5efe54bb64
Use custom error code for PlayURL errors (#22)
* use custom error code

* rename error

* add second error code

* rename errors
2023-07-12 18:46:01 -04:00
Pierce
26111a8845
update allowed addresses 2023-07-05 18:46:05 -04:00
plally
d5e216c33b
Update default_config.lua 2023-04-26 16:11:19 -04:00
plally
9f6fc16dea
Update default_config.lua 2023-04-26 16:10:55 -04:00
plally
168b21dc6b
Merge pull request #17 from sr229/main
Add in latest whitelisted remotes from StarfallEx
2022-09-11 18:06:22 -04:00
Ayane
7e88a6dd26
Add pattern property for the new whitelist entries
Co-authored-by: plally <pierce@vulpes.dev>
2022-09-10 16:11:50 +08:00
Ayane
88c97b878d
Add in latest whitelisted remotes from StarfallEx 2022-09-07 22:15:33 +08:00
Redox
f96cc1c991
Add workflow and fix style (#16)
* Add workflow

* Style, remove shadow bindings

* Style, shadow bindings

* Style

* Style
2022-09-07 03:06:34 +02:00
plally
b01f62a8fc
Merge pull request #15 from CFC-Servers/fix-invalid-verison
fix invalid version
2022-09-06 20:34:10 -04:00
Pierce
03c543b7eb
fix invalid version 2022-09-06 20:27:57 -04:00
plally
633e9eb731
Update README.md 2022-09-01 19:53:39 -04:00
plally
1619870037
Update README.md 2022-09-01 19:47:08 -04:00
Pierce
b554ae4c9b
hotfix addresses -> config.addresses 2022-08-21 22:10:28 -04:00
Pierce
0f68eb7108
update config editor to only save specific config fields 2022-08-21 18:51:07 -04:00
plally
c55d4cd48e
Delete cfc.lua 2022-08-21 18:08:26 -04:00
plally
b391ffb8cd
Merge pull request #11 from CFC-Servers/feature/html-panels
Feature/html panels
2022-08-21 17:57:59 -04:00
Pierce
d91edde8ac
merge other config values 2022-08-21 17:07:08 -04:00
Pierce
23e8989ee7
check config for wrapHTMLPanels 2022-08-21 17:04:22 -04:00
Pierce
ee12e31f61
another small bug fix 2022-08-21 15:45:17 -04:00
Pierce
98de361e04
fix bugs 2022-08-21 15:38:39 -04:00
Pierce
fdf1674ac7
dont use isAllowed 2022-08-21 15:28:49 -04:00
Pierce
74db2a3635
remove duplicate function 2022-08-21 15:23:48 -04:00
Pierce
e1b617bb7b
merge main into feature/html-panels 2022-08-21 14:49:57 -04:00
plally
aa3be43697
Merge pull request #14 from CFC-Servers/feature/config-improvements
improve configuration loading
2022-08-21 14:42:47 -04:00
plally
af96b99110
Update lua/cfc_http_restrictions/client/list_manager.lua
Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
2022-08-21 14:42:27 -04:00
plally
e4c4eac369
Update lua/cfc_http_restrictions/client/list_manager.lua
Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
2022-08-21 14:42:23 -04:00
plally
b21043a046
Update lua/cfc_http_restrictions/config_loader.lua
Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
2022-08-21 14:41:57 -04:00
plally
d4a7801b69
Update README.md 2022-08-21 14:05:37 -04:00
Pierce
f691939098
add convars to readme 2022-08-20 16:27:38 -04:00
Pierce
1e0264c600
readd noisy domain functionality 2022-08-20 16:15:19 -04:00
Pierce
cd881d762d
improve configuration loading 2022-08-20 15:27:52 -04:00
plally
ed41422b9e
Merge pull request #13 from CFC-Servers/add-facepunch-domain
Add facepunch.com
2022-08-09 00:42:20 -04:00
Redox
9dece0e5c3
Update list_manager.lua 2022-08-09 06:40:37 +02:00
Redox
ff8ae05340
Update list_manager.lua 2022-08-09 06:38:49 +02:00
plally
fb8dfbaf4b
Update lua/cfc_http_restrictions/wrap_functions.lua
Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
2022-07-12 19:39:54 -04:00
plally
929daf500d
wrap pannels after Initialize
Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
2022-07-12 19:39:25 -04:00
plally
3d8b1ebd03
whitespace changes
Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
2022-07-12 19:38:56 -04:00
plally
21be93a901
stlye
Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
2022-07-12 19:38:46 -04:00
plally
b63176d964
localize funcName
Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
2022-07-12 19:38:40 -04:00
Pierce
2cccd47baa
Merge branch 'main' into feature/html-panels 2022-07-10 17:56:42 -04:00