Project

General

Profile

Actions

Feature #31818

closed

Implement curl proxy blacklist in t3lib_div::getUrl

Added by Michel Nederlof about 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Could have
Category:
-
Target version:
Start date:
2011-11-15
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
medium
Sprint Focus:

Description

In our network we have a proxy server which allows outbound traffic, but in case of internal network access, the proxy server is not able to connect.

Since we all should use t3lib_div::getURL to get resources, I implemented a proxy blacklist when curl is used.

In the localconf.php you can add a line like this:

$TYPO3_CONF_VARS['SYS']['curlProxyBlackList'] = '*.example.com, www.google.com';

Now any subdomain of example.com and the host www.google.com will not be fetched via the proxy.

See the attached unified diff how i've implemented it.

It would be great if this could be integrated into TYPO3.


Files

class.t3lib_div.php.diff (2.37 KB) class.t3lib_div.php.diff Michel Nederlof, 2011-11-15 14:21

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #28258: cURL: allow custom curl paramsRejected2011-07-16

Actions
Has duplicate TYPO3 Core - Feature #27669: Proxy Exceptions for CurlClosed2011-07-102011-07-10

Actions
Actions

Also available in: Atom PDF