Project

General

Profile

Actions

Feature #81356

closed

Make hostname work like IP address in devIPmask setting

Added by Markus Kappe about 7 years ago. Updated 6 days ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
System/Bootstrap/Configuration
Target version:
-
Start date:
2017-05-29
Due date:
% Done:

0%

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

Description

Unfortunatly I don't have a fixed IP address, so I use a dyndns-like service to identify my computer. That has some implications when it comes to debugging, because when I use

[SYS][displayErrors] = -1

I would like to be able to write
[SYS][devIPmask] = example.dyndns.com

The IP address can be obtained by http://php.net/manual/function.gethostbyname.php so I guess it would be rather easy to extend this functionality.

Actions #1

Updated by Susanne Moog over 4 years ago

  • Category set to System/Bootstrap/Configuration
Actions #2

Updated by Oliver Hader 6 days ago

Seems to be doable, however there are two remarks:

  • multiple IP addresses for one domain name, e.g. round robin assignments
  • intermediate caching in case there is no local DNS server to avoid blocking requests during the IP resolution via an external DNS server
Actions #3

Updated by Benni Mack 6 days ago

  • Status changed from New to Closed

We won't do that.

This is IMHO an edge-case issue: One could also use a VPN to conquer this.

- gethostbyname() does not properly support IP v6
- gethostbyname() / DNS can be an issue for disabling the site completely.

Instead, I would go with a solution / workaround in your case in AdditionalConfiguration /additional.php:

if ($_SERVER['REMOTE_HOST'] === 'my.site') {
 $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIpMask'] = '*';
}
Actions

Also available in: Atom PDF