The Un-Official Proxomitron Forum
Block cloudfront but allow xxx.cloudfront - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Forum Related (/forumdisplay.php?fid=37)
+--- Forum: ProxHTTPSProxy (/forumdisplay.php?fid=48)
+--- Thread: Block cloudfront but allow xxx.cloudfront (/showthread.php?tid=2338)



Block cloudfront but allow xxx.cloudfront - charliebrown10242048 - Jul. 28, 2018 10:01 PM

Using ProxHTTPSProxyMII 1.3, I want to block [BLACKLIST] .cloudfront.net, but allow dyw03owr7vs3n.cloudfront.net thru. Where & how do I insert in config.ini for the wanted result?
Thanks, Greg


RE: Block cloudfront but allow xxx.cloudfront - kichrot - Jul. 29, 2018 06:53 AM

I think that you will need to create a regular expression, according to which all the addresses of the .cloudfront.net domain will be blocked except dyw03owr7vs3n.cloudfront.net, and put this regular expression in the [BLACKLIST] section.


RE: Block cloudfront but allow xxx.cloudfront - charliebrown10242048 - Jul. 29, 2018 07:19 PM

"I think that you will need to create a regular expression, according to which all the addresses of the .cloudfront.net domain will be blocked except dyw03owr7vs3n.cloudfront.net, and put this regular expression in the [BLACKLIST] section."

Perchance you could direct me to or write an example?
(I don't know how to do this....)
Greg

forgot where I was....
I'll re-study Scotts directory & (re)LEARN!!!
Greg


RE: Block cloudfront but allow xxx.cloudfront - JJoe - Jul. 30, 2018 01:35 AM

(Jul. 28, 2018 10:01 PM)charliebrown10242048 Wrote:  Using ProxHTTPSProxyMII 1.3, I want to block [BLACKLIST] .cloudfront.net, but allow dyw03owr7vs3n.cloudfront.net thru. Where & how do I insert in config.ini for the wanted result?
Thanks, Greg

I don't remember MII's routine being that sophisticated.

(Jul. 29, 2018 07:19 PM)charliebrown10242048 Wrote:  forgot where I was....
I'll re-study Scotts directory & (re)LEARN!!!
Greg

Assuming sidki's set with MII, add

Code:
(^dyw03owr7vs3n)*.cloudfront.net/ $USEPROXY(false)$SET(keyword=i_proxy:0.)$RDIR(http://local.ptron/killed.gif)

to Exceptions-U.

HTH