Giter Club home page Giter Club logo

Comments (15)

dschaper avatar dschaper commented on July 23, 2024

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.

nickzelei avatar nickzelei commented on July 23, 2024

That doesn't work either.
Just tried www.google.com and google.com

I can add them through the command line though.

from web.

nickzelei avatar nickzelei commented on July 23, 2024

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.

dschaper avatar dschaper commented on July 23, 2024

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.

nickzelei avatar nickzelei commented on July 23, 2024

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.

AzureMarker avatar AzureMarker commented on July 23, 2024

Are you adding it exactly like this? google.com
If so, run cat /var/log/lighttpd/error.log and post the output.

from web.

dschaper avatar dschaper commented on July 23, 2024

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.

nickzelei avatar nickzelei commented on July 23, 2024

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.

nickzelei avatar nickzelei commented on July 23, 2024

@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.

AzureMarker avatar AzureMarker commented on July 23, 2024

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.

nickzelei avatar nickzelei commented on July 23, 2024

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.

nickzelei avatar nickzelei commented on July 23, 2024

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.

dhsc19 avatar dhsc19 commented on July 23, 2024

@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.

AzureMarker avatar AzureMarker commented on July 23, 2024

Here you go.

from web.

dhsc19 avatar dhsc19 commented on July 23, 2024

@Mcat12 Thank you!

from web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.