I'd guess that you could probably create your own version ofIs it possible do something with a plugin or something?
/www/blocking.asp
and overmount the original when the router boots up.Skynet simply compares and blocks IPs that are present in the IP table rules... it doesn't seem to care who or what is doing it, and isn't keep track of any particular session in order to redirect people to a blocking page.@RMerlin , would skynet do this?
That sound easy, but how would I mount it? I've tried edit it derectly, but failed due to read-only file systemI'd guess that you could probably create your own version of/www/blocking.asp
and overmount the original when the router boots up.
Take a copy of that file, edit it, and save it to somewhere in jffs, e.g.That sound easy, but how would I mount it? I've tried edit it derectly, but failed due to read-only file system
/jffs/scripts/blocking.asp
.services-start
, e.g.mount -o bind /jffs/scripts/blocking.asp /www/blocking.asp
Actually you can. Go to Administration - System, then Enable Access Restrictions, fill in the IP addresses that are allowed to access the router, any IP addresses outside the whitelist will be blocked, so they will not enter the blocked page.You can't.
Isn't that setting only relevant for WAN access?Actually you can. Go to Administration - System, then Enable Access Restrictions, fill in the IP addresses that are allowed to access the router, any IP addresses outside the whitelist will be blocked, so they will not enter the blocked page.
It will use iptables to restrict access to the router from any IP address outside the whitelist, whether it is the WAN side or the LAN side.Isn't that setting only relevant for WAN access?
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address><script>
const address = <% bwdpi_redirect_info(); %>;
document.write(address&&address[1]||'<% get_parameter("domain"); %>');
//history.go(-1); //redirect to previous page
</script></address>
</body>
I know. Nothing I can do about.This whole page redirection routine doesn't work on https sites with error `ERR_SSL_PROTOCOL_ERROR`
Can the redirection be done via http headers instead of html?I know. Nothing I can do about.
The redirection requires a connection to the httpd daemon, which will always be the same protocol (http or https) as the original request. Only after that connection is the router able to apply the redirection (301). Therefore, you will always end up with the protocol error issue.Can the redirection be done via http headers instead of html?
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!