Commit Graph

69 Commits

Author SHA1 Message Date
DL6ER
2df4a0d052 Improve logic
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-08 21:17:10 +02:00
DL6ER
8b1313b864 Don't require adlists to start in "http". This also displays lists that start in e.g., "ftp://" or "file://" or without a protocol.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-08-08 12:06:59 +02:00
Kevin Kirsche
49d6feb4c3 Fix 579 | Add interface option for administrator email address (Redo of #757)
Signed-off-by: Kevin Kirsche <Kev.Kirsche@gmail.com>
2018-05-26 23:17:17 -04:00
DL6ER
bd25557469 Remove last traces of local custom port settings
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-05-04 22:11:50 +02:00
DL6ER
dd96847cc5 Remove local DNS with custom port field as it is superseeded by the more powerful custom 1/2/3/4 implementation
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-05-04 19:16:55 +02:00
DL6ER
6d8c3de5ba Support custom ports in the custom DNS server tab on the settings page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-05-04 19:14:31 +02:00
DL6ER
4c91d65547 Make sure backend does always interpret list of DNS servers even if it is empty
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-19 07:38:34 +02:00
DL6ER
847d6aae53 Improve code as suggested
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-18 21:49:35 +02:00
DL6ER
7fa6cd85d3 Be less specific, as this feature can be used for any time of local resolver running on a custom port
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-18 17:31:16 +02:00
DL6ER
f2cefe6ce1 Add frontend changes for supporting a local recursive DNS server
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-18 17:11:36 +02:00
DL6ER
1055ccf4a3 Add privacy level tab to Settings page
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-04 14:20:19 +02:00
Everett Southwick
5e9c1aec9a Add support for public Cloudflare DNS servers.
Signed-off-by: Everett Southwick <everett@everettsouthwick.com>
2018-04-01 18:02:26 -05:00
Mark Drobnak
0f76158129 Merge pull request #653 from ryanknapper/devel
Conditional forwarding options
2018-02-18 12:51:57 -05:00
DL6ER
78f6cb3751 Add option to disable logging without flushing logs (for temporary disabling without wanting to nuke the logs).
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-01-18 17:09:20 +01:00
Mark Drobnak
34b6c37516 Fix IP check and allow host names in Top Clients filter
Signed-off-by: Mark Drobnak <newtoncat12@yahoo.com>
2018-01-11 15:33:31 -05:00
Mark Drobnak
323b3a7a8b Fix Top Clients filter
It expected IP addresses, but only let in domains

Signed-off-by: Mark Drobnak <newtoncat12@yahoo.com>
2018-01-10 15:56:41 -05:00
DL6ER
bc1f6f9be6 Add quad9 secondary IPv4 server
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-12-30 18:26:49 +01:00
ryanknapper
9b3cf91cee Update savesettings.php
Added section to save conditional forwarding settings.
2017-12-26 13:47:40 -05:00
Mcat12
c2d9506bec Merge pull request #619 from mcattle/patch-1
Add Quad9 DNS Servers to DNS Servers List
2017-11-18 14:06:51 -05:00
mcattle
edb93db3ce Add Quad9 DNS Servers to DNS Servers List
I've added the Quad9 DNS servers (IPv4 and IPv6) to the DNS Servers list.  (https://www.quad9.net/)  I've opted not to also add their non-secure alternate servers, as those mainly exist for diagnostics of false positives, and are not the primary focus of the Quad9 service.  They do not offer secondary servers, as their primary servers are already geographically distributed and redundant.
2017-11-16 23:08:35 -07:00
WaLLy3K
0bafeabe49 Allow full stop in top list wildcard exclusions
* Fix #580
2017-09-22 18:19:04 +10:00
DL6ER
5ab4430ef0 halt -> poweroff
Signed-off-by: DL6ER <dl6er@dl6er.de>
2017-09-08 20:30:59 +02:00
gedetil
08f40722c1 Update savesettings.php
Implement "Halt system" button, next to "Restart system" button, on
admin/settings page.  Useful for doing clean shutdown before powering off.

Gilbert Detillieux <gedetil> 2017-04-11
2017-04-11 13:44:18 -05:00
Mcat12
52a5fb62ff Merge pull request #466 from pi-hole/fix/csrf-security
Add CSRF token
2017-04-06 16:22:18 -04:00
Mcat12
acc83345fd Merge pull request #252 from pi-hole/customizeadlists
Manage adlists
2017-04-06 16:16:05 -04:00
Mcat12
fe7f3d3873 Require CSRF token when changing settings 2017-04-02 20:04:39 -04:00
Mcat12
7a5c8e899e Use button to remove lists 2017-03-31 20:16:58 -04:00
Mcat12
86d8869867 Handle deletion of list in savesettings.php 2017-03-31 18:42:00 -04:00
Adam Warner
c11172d7c4 modify to work with changes in pihole#1365 2017-03-31 21:05:53 +01:00
Flo
146184824f Update savesettings.php 2017-03-26 14:56:21 +02:00
Mcat12
c182834e55 Fix undefined variable when setting DNS servers 2017-03-21 18:35:32 -04:00
Skittels
7627f35ba5 Update savesettings.php 2017-03-14 20:21:57 +01:00
DL6ER
41cadc5b48 Merge pull request #423 from pi-hole/new/IPv6upstreamDNSservers
Add IPv6 upstream server settings
2017-03-03 14:43:48 +01:00
DL6ER
4182a83bd4 Codacy and styling 2017-03-03 14:39:51 +01:00
DL6ER
40fd8b8b1d Add IPv6 upstream servers 2017-03-02 22:38:38 +01:00
DL6ER
57d62879bc Merge branch 'devel' into new/FTL-integration 2017-03-01 12:44:51 +01:00
DL6ER
6cef1b3085 Setup interface listening behavior of dnsmasq 2017-03-01 11:25:28 +01:00
DL6ER
f88092175e Conflicts:
api.php
	scripts/pi-hole/php/FTL.php
	scripts/pi-hole/php/auth.php
	scripts/pi-hole/php/password.php
2017-02-19 14:17:52 +01:00
Promofaux
86880668fa Add DNS.WATCH servers from https://github.com/pi-hole/pi-hole/pull/1253 2017-02-18 17:51:15 +00:00
DL6ER
4f70973cbc EUPL license (#402)
* Move whole project to EUPL, copy MIT license to scripts/vendor/ and style/vendor/

* Added header to main PHP files

* Modified scripts in scripts/pi-hole/php

* Added header to scripts/pi-hole/js files

* Added license header to our custom style script

* Slight reformulation
2017-02-18 14:20:51 +01:00
DL6ER
aabff35bef Squashed commit of the following:
- Dynamically fall back to PHP API functions to ensure API does always repond even if FTL is not runnung for some reason
- Update PHP API from current devel branch
- Increase flexibility in getQueryTypes API call
- Hide top ads list if nothing to display
- Proper display of activated privacy mode
- Remove spinner (would otherwise not be removed for zero results)
- Update tables every 10 seconds
- Update query types and forward destinations plots every 10 seconds
- More verbose output in top lists (total number next to percentage in tooltip)
- Implemented "recentBlocked" keyword for API
- Ensure compatibility with PHP5 version < 5.4
- Adjust output format of overTimeData10mins to comply with PHP API
- Further speedup of Query Log page by showing only the recent 10 minutes by default
- Hide temperature if FTL is not running and show FTL status
- Add information to Settings page
- Adjust error message when loading of query log failed
- Move processing of domainname, clientIP, clientname and time interval filters for the Query Log page to FTL for speed enhancement
- Generate link if pi.hole comes up in the Top Domains list
- Remove resolve DNS names option - this is now enabled by default (daemon will only do it once per day instead of PHP-API which did it on every reloading of the web interface)
- Add socket timeout of 10 seconds + modification to Settings page since FTL backend supports API_EXCLUDE_CLIENTS filtering with both IP addresses and host names (also mixed)
- Improved Query Log page
2017-02-16 08:52:30 +01:00
DL6ER
1c73016f6a Modified scripts in scripts/pi-hole/php 2017-02-14 15:00:11 +01:00
Mcat12
ee41dbdc70 Merge pull request #391 from pi-hole/fix/xss-settings
Clean any inputs being added to $success or $error
2017-02-09 16:21:00 -05:00
Mcat12
3a3883aa39 Clean any inputs being added to $success or $error
Changes htmlentities to htmlspecialchars as well, because
htmlentities is not adequate to protect against XSS attacks:
http://php.net/manual/en/function.htmlentities.php#99896

Fixes #365
2017-02-02 19:39:51 -05:00
DL6ER
11bee7f45d Do not accept :: or 0:0:0:0:0:0:0:0 as valid IPv6 address 2017-02-02 10:49:55 +01:00
DL6ER
c81e2591bd Remove debug mode 2017-01-30 23:44:14 +01:00
DL6ER
68a48aef2f added -> removed 2017-01-30 23:19:28 +01:00
DL6ER
6af5fe73ae Added comments 2017-01-25 13:10:57 +01:00
DL6ER
3ba37d7793 Also allow (manually set dhcp-host=hostname,ip.add.re.ss) in table. As this has been added manually, don't allow deleting it 2017-01-25 13:08:36 +01:00
DL6ER
8646507f37 Make sure variables are empty before call of sscanf() 2017-01-25 11:47:20 +01:00