Post Reply 
prox-config-sidki_2019-01-26b1
Feb. 27, 2022, 04:53 AM (This post was last modified: Feb. 27, 2022 04:58 AM by JJoe.)
Post: #101
RE: prox-config-sidki_2019-01-26b1
(Feb. 27, 2022 03:26 AM)whenever Wrote:  
(Feb. 27, 2022 02:39 AM)JJoe Wrote:  
(Feb. 26, 2022 08:41 PM)ProxRocks Wrote:  Or perhaps only third-party fonts fetched from domains different from the current URL?
Perhaps the routine in

What about via https://developer.mozilla.org/en-US/docs...y/font-src ?

Thanks. I forgot about that even though I am using it to block media. Should be easy to adapt...

Code:
[HTTP headers]
In = TRUE
Out = FALSE
Key = "Content-Security-Policy: z block fonts 22.02.27    [whenever,jjoe] (o.0) (In) `"
URL = "$TST(uProt=https:)"
Match = "\1(font-src )\2[^;]+;$SET(3=https://local.ptron:8443;)\4| (^?)$SET(1=font-src https://local.ptron:8443;)|\2$SET(1=font-src https://local.ptron:8443; )|add test"
Replace = "\1\2\3\4"

In = TRUE
Out = FALSE
Key = "Content-Security-Policy: z block media 22.01.31    [jjoe] (o.0) (In) `"
URL = "$TST(uProt=https:)"
Match = "\1(media-src 'none')\2\3| (^?)$SET(1=media-src 'none')|\2$SET(1=media-src 'none'; )|add test"
Replace = "\1\2\3"

Still working on a Content-Security-Policy routine.
"add test" is a note to remind me to add a keyword.
Needs work, if only third party blocking is desired.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
prox-config-sidki_2019-01-26b1 - JJoe - Mar. 10, 2019, 05:11 AM
RE: prox-config-sidki_2019-01-26b1 - whenever - Mar. 19, 2019, 06:39 AM
RE: prox-config-sidki_2019-01-26b1 - whenever - Mar. 22, 2019, 02:56 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Mar. 22, 2019, 03:50 AM
RE: prox-config-sidki_2019-01-26b1 - whenever - Mar. 22, 2019, 08:49 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Mar. 22, 2019, 04:23 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Mar. 28, 2019, 02:54 AM
RE: prox-config-sidki_2019-01-26b1 - whenever - Mar. 24, 2019, 09:33 AM
RE: prox-config-sidki_2019-01-26b1 - whenever - Mar. 27, 2019, 01:17 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Mar. 28, 2019, 02:31 AM
RE: prox-config-sidki_2019-01-26b1 - whenever - Mar. 28, 2019, 08:18 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Sep. 15, 2019, 02:08 AM
RE: prox-config-sidki_2019-01-26b1 - amy - Sep. 16, 2019, 03:18 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Sep. 16, 2019, 04:33 PM
RE: prox-config-sidki_2019-01-26b1 - mizzmona - Oct. 10, 2019, 09:10 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Oct. 11, 2019, 04:21 PM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 21, 2022, 01:19 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Jan. 21, 2022, 11:48 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Jan. 22, 2022, 12:20 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 22, 2022, 08:39 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 22, 2022, 11:33 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Jan. 22, 2022, 10:13 PM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 23, 2022, 02:57 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 23, 2022, 05:45 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Jan. 24, 2022, 04:32 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 24, 2022, 10:25 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Jan. 24, 2022, 05:31 PM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 24, 2022, 10:35 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 27, 2022, 11:16 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Jan. 28, 2022, 12:30 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 28, 2022, 01:28 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Jan. 29, 2022, 05:37 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 29, 2022, 11:30 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 29, 2022, 03:58 PM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 28, 2022, 12:57 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Jan. 29, 2022, 05:40 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 29, 2022, 02:13 PM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 29, 2022, 11:17 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Jan. 30, 2022, 02:18 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Jan. 30, 2022, 02:25 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 30, 2022, 11:47 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 04, 2022, 10:43 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 30, 2022, 02:28 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Jan. 30, 2022, 05:03 PM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 31, 2022, 02:22 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 01, 2022, 12:22 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 01, 2022, 12:31 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 01, 2022, 01:16 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Jan. 31, 2022, 11:11 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 01, 2022, 12:30 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 01, 2022, 12:34 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 01, 2022, 01:37 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 01, 2022, 05:50 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 01, 2022, 09:52 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 01, 2022, 01:32 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 01, 2022, 06:23 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 01, 2022, 09:54 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 02, 2022, 11:39 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 03, 2022, 12:19 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 02, 2022, 09:45 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 03, 2022, 12:22 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 02, 2022, 11:15 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 03, 2022, 01:26 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 04, 2022, 10:44 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 05, 2022, 05:38 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 07, 2022, 12:15 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 09, 2022, 11:55 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 14, 2022, 01:52 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 14, 2022, 03:11 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 15, 2022, 05:20 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 15, 2022, 11:18 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 15, 2022, 11:33 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 16, 2022, 04:24 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 16, 2022, 10:31 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 17, 2022, 12:31 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 17, 2022, 01:59 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 17, 2022, 05:00 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 17, 2022, 05:56 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 17, 2022, 11:06 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 18, 2022, 02:31 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 18, 2022, 03:43 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 18, 2022, 03:53 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 19, 2022, 02:40 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 17, 2022, 07:40 PM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 18, 2022, 02:21 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 19, 2022, 03:48 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 19, 2022, 01:24 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 19, 2022, 03:59 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 19, 2022, 12:07 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 19, 2022, 05:32 PM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 19, 2022, 06:46 PM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 26, 2022, 08:41 PM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 27, 2022, 02:39 AM
RE: prox-config-sidki_2019-01-26b1 - whenever - Feb. 27, 2022, 03:26 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Feb. 27, 2022 04:53 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 27, 2022, 03:04 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 27, 2022, 04:59 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 27, 2022, 05:12 AM
RE: prox-config-sidki_2019-01-26b1 - ProxRocks - Feb. 27, 2022, 05:41 AM
RE: prox-config-sidki_2019-01-26b1 - JJoe - Sep. 30, 2022, 03:45 AM

Forum Jump: