mirror of
https://github.com/senhan07/adguard-custom-block-page.git
synced 2026-08-04 19:25:14 -04:00
when accessing via IP; click to proceed warning #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iptvcld on GitHub (Jan 31, 2024).
SInce AGH only allows the use of an IP for use a block page (not sure why...) I keep getting a message to click here to proceed then the custom page comes up.. Does anyone have any tricks for this?
@senhan07 commented on GitHub (Jan 31, 2024):
The problem is happening because the website uses a secure connection (HTTPS), but the website certificate doesn't match the destination where is the redirection IP Address you configured. That's why you see a warning page. When you try accessing the website with a regular connection (HTTP), it works fine and shows the block page.
One potential solution to make it work with HTTPS is by using a proxy with SSL bump, but I haven't tried that yet. It might help with SSL issue
@iptvcld commented on GitHub (Jan 31, 2024):
I have been trying to get this going for a 4 days now. I have HAProxy that redirect 80 to 443 and setup a nginx server but still get asked to click. There has to be a way to make this redirect work and one time i got it working on a computer but then on the mobile device it does not work
@senhan07 commented on GitHub (Feb 1, 2024):
By you mean HAProxy redirect 80 to 443 is that the nginx server running on HTTPS?, Just running the web server on HTTPS alone won't solve the issue. The problem lies in a mismatch between the domain/IP address on the SSL certificate.
so for ex. when you trying open blocked site like
https://xxx.com (IP:118.98.115.77)the AGH redirect the IP Address to nginx (ex.IP:192.168.1.10). since the SSL certificate onhttps://xxx.comis only accept domainxxx.comor118.98.115.77the browser show up warning page telling the certificate doesn't match@iptvcld commented on GitHub (Feb 1, 2024):
Hmm so it seems like there is no workaround for this? Why even have an option to redirect to a custom page?
@sannidhyaroy commented on GitHub (Jan 30, 2025):
Because it will work, if setup correctly. You have to trust the root CA of the block page, otherwise it will show SSL errors due to the above mentioned reasons.
For now, I have pointed my AdGuard Home instance to use ControlD blockpage:
This will work, but to remove SSL Warnings, you also have to install the ROOT CA of ControlD (in this case).
I have no problems with it and this is working perfectly fine, but if possible, I didn't want the ControlD branding for my AdGuard Home Instance, and show the website domain that was blocked (like this repo project shows).