Comments (15)
Try whitelisting just the domain, leave off the http
portion and see if that allows the listing. We have added code that detects any characters that are not part of a standard domain name and it's probably hitting that colon and backslash and rejecting your requests as a protective measure.
from web.
That doesn't work either.
Just tried www.google.com and google.com
I can add them through the command line though.
from web.
I added https://www.google.com through the command line and I also can not delete it through the command line due to the regex. :X
from web.
There shouldn't be any URI's in the white/black lists. If you have them, they need to be deleted out and just list the domains plain like a hosts file. There is some code that will take into consideration having http
or https
in the lists, but it will cause dnsmasq
to function in ways that it was not intended to.
from web.
Okay I've re-installed pi-hole and have removed any trace of http|https and www. from all of my white lists and rebooted my RPi. I am still unable to add from the admin interface.
from web.
Are you adding it exactly like this? google.com
If so, run cat /var/log/lighttpd/error.log
and post the output.
from web.
Can you post the POST
call and the response from that call? I'd like to see what the contents of the POST
is exactly to see if there is anything there that may be tripping the sanitize function.
from web.
Yes, "google.com"
Here is the output:
2016-08-20 20:15:27: (mod_fastcgi.c.2683) FastCGI-stderr: PHP Fatal error: Call to undefined function hash_equals() in /var/www/html/admin/php/auth.php on line 49
from web.
@dschaper If you look at my album in the original post in the second image I have a screenshot of the POST and all of its parameters. There is no Response. According to the error.log (in my post above this one) PHP is erroring out saying hash_equals() is not a function. Could my PHP be out of date?
from web.
Looks like you have an out of date PHP version. We're working on lowering the version requirement (currently 5.6), but for now you will have to either update PHP, only whitelist through the command line, or manually modify a few files (will explain if you want).
from web.
I've resorted to modifying the txt files for now. I'll work on updating PHP on my pi. I'll report findings here.
from web.
After some research, it appears the highest available package for Wheezy is 5.4 unless compiled from source. It takes a really long time to do this on a Rpi 2 and ended up failing out the middle of the way through. So it looks like I'm just going to cut losses and upgrade to Jesse since I think it supports higher versions of PHP from the package manager.
Feel free to call this issue closed.
from web.
@Mcat12 Would you give instruction on what to modify with the PHP files as I am not able to update to the proper PHP version for now. So, I am interested in this workaround. Thank you.
from web.
from web.
@Mcat12 Thank you!
from web.
Related Issues (20)
- Query Log table - long client names create a horizontal scrollbar in boxed layout
- Click on query log details causes Uncaught TypeError HOT 1
- Group assignment dropdown not always populated HOT 4
- Local DNS records and CNAME don't show pagination buttons HOT 11
- After clicking on the +/- icon they keep the "active" state making them nearly invisible with dark theme HOT 1
- After datatables update, tables are no longer striped HOT 1
- Save button on boxed layout outside of content area HOT 1
- SQL-Error on fresh installation on Raspberry HOT 3
- Web GUI add domain to whitelist / blacklist is added only in default group HOT 1
- No log in for a week HOT 7
- admin/scripts/pi-hole/php/customdns.php and admin/dns_records.php: CORS is something the browser handles, not the server HOT 3
- CNAME records not imported to v6 from v5 Teleport file HOT 5
- /admin/scripts/pi-hole/php/customdns.php persistently fails even with password disabled HOT 2
- Update Gravity page is redirect depending on the settings level HOT 1
- An entry in the blacklist is not being blocked HOT 10
- Mapping 2 MAC addresses to the same IP address not displayed correctly on web HOT 2
- "Total queries over last 24 hours" empty HOT 4
- NAN on Admin Stats with Multiple Containerized Pihole Admin Consoles HOT 15
- Glow effect in "Total Queries" box result in blurry text. HOT 5
- Universal Time Displayed in Firefox Instead of Local Time HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web.