Post Reply 
SSL warnings --> images & css
Jan. 25, 2013, 02:31 PM
Post: #4
RE: SSL warnings --> images & css
no joke there, the vast majority of the cert-errors i've ran in to all come from "fbstatic-a.akamaihd.net/" (ie, FACEBOOK)...

i've changed my cert-error-preventer filters to add two schemes:
1) if a .CSS is trying to come in as SSL, i convert it to non-SSL...
2) prevent .CSS from loading images via SSL...

those two added to the previous two:
1) block FavIcon POS...
2) convert SSL images on non-SSL sites (no longer by file extension though)...

Code:
Name = "Block: FavIcon Images [add]"
Active = TRUE
URL = "($TST(hCT=*html)|$TYPE(js))(^$TST(keyword=*.(a_track|a_bug).*))"
Bounds = "<i(mg|nput|mage)\s*>(^\=)"
Limit = 2048
Match = "*(favicon|no-image).ico*"

Name = "Convert SSL CSS to non-SSL CSS"
Active = TRUE
URL = "$TST(hCT=*html)"
Bounds = "<link rel="stylesheet"*>"
Limit = 2048
Match = "\1href=('|")\2https:\3.css('|")\4\5"
Replace = "\1href=\2http:\3.css\4\5"

Name = "Convert SSL Images on non-SSL Sites"
Active = TRUE
URL = "$TST(hCT=*html)$TST(uProt=http:)"
Bounds = "<i(mg|nput|mage)\s*>(^\=)"
Limit = 2048
Match = "\1src=('|")\2https:\3('|")\4\5"
Replace = "\1src=\2http:\3\4\5"

Name = "Convert SSL Images inside non-SSL CSS"
Active = TRUE
URL = "$TYPE(css)$TST(uProt=http:)"
Limit = 2048
Match = "url\(https:\/\/\1(gif|png|jpg|jpeg|jpe|bmp|xbm|ico)\2\3\)"
Replace = "url(http://\1\2\3)"
Add Thank You Quote this message in a reply
[-] The following 2 users say Thank You to ProxRocks for this post:
chatterer, usr
Post Reply 


Messages In This Thread
SSL warnings --> images & css - ProxRocks - Jan. 02, 2013, 06:37 PM
RE: SSL warnings --> images - ProxRocks - Jan. 08, 2013, 12:10 PM
RE: SSL warnings --> images - Oddysey - Jan. 09, 2013, 01:07 AM
RE: SSL warnings --> images & css - ProxRocks - Jan. 25, 2013 02:31 PM
RE: SSL warnings --> images & css - ProxRocks - Jan. 30, 2013, 01:34 PM
RE: SSL warnings --> images & css - ProxRocks - Jan. 30, 2013, 04:02 PM
RE: SSL warnings --> images & css - ProxRocks - Jan. 30, 2013, 09:31 PM
RE: SSL warnings --> images & css - ProxRocks - Jan. 30, 2013, 09:57 PM
RE: SSL warnings --> images & css - chatterer - Feb. 03, 2013, 11:38 AM
RE: SSL warnings --> images & css - ProxRocks - Feb. 04, 2013, 11:33 AM

Forum Jump: