Paul M |
01-03-2015 05:20 PM |
Quote:
Originally Posted by Nirjonadda
(Post 2530169)
@Paul M, Why not you add this Features for vB 4.2.3 By default?
|
Actually, you have sort of been able to do it in any version of 4.2.x, as long as Cloudfare were connecting to you via specific (known) IPs.
You do it by setting the proxy definitions in your config.php file ;
PHP Code:
$config['Misc']['proxyiplist'] = '192.168.10.20, 192.168.20.30'; $config['Misc']['proxyipheader'] = 'HTTP_CF_CONNECTING_IP';
Where 192.168.10.20 & 192.168.20.30 is the Clouldfare IPs.
Unfortunately, Cloudfare uses many IPs, which limited the usefulness of this unless you defined a big list (not a good idea performance wise).
However, in 4.2.3 you can actually specify this ;
PHP Code:
$config['Misc']['proxyiplist'] = 'all'; $config['Misc']['proxyipheader'] = 'HTTP_CF_CONNECTING_IP';
Which means vB will trust any IP it gets the Cloudfare supplied data from, eliminating the need for the edit above and a long list of specific IPs.
|