Community discussions

MikroTik App
 
netgus
just joined
Topic Author
Posts: 21
Joined: Fri Jan 27, 2012 2:01 pm

Is it possible to modify the 403 error page?

Fri Jul 12, 2024 11:05 pm

Hello,

Is it possible to modify the 403 error page received through the proxy?

Thank you
 
peterda
newbie
Posts: 42
Joined: Mon Jan 18, 2021 11:51 am
Location: Norway

Re: Is it possible to modify the 403 error page?

Sat Jul 13, 2024 12:34 am

The 403 error page?
The proxy?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 20818
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Is it possible to modify the 403 error page?

Sat Jul 13, 2024 3:37 am

Concur, it should be error 404-1 or conversely error 402+1
 
netgus
just joined
Topic Author
Posts: 21
Joined: Fri Jan 27, 2012 2:01 pm

Re: Is it possible to modify the 403 error page?

Mon Jul 15, 2024 5:39 pm

error proxy.png
The aim is not to send any information to the person trying to access the system. It's a reverse proxy. I can understand that on an internal network, this information could be used, but it would still be interesting to be able to modify the page.

Thanks for your help
You do not have the required permissions to view the files attached to this post.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12332
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Is it possible to modify the 403 error page?  [SOLVED]

Wed Jul 17, 2024 4:23 pm

is error.html inside webproxy folder................

if the page do not exist, press Reset HTML.............

error.html code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: $(status)</title></head>
<body><h2>ERROR: $(status)</h2>
<hr noshade size="1px"/>
$(if error)
<p>While trying to retrieve the URL <a href="$(url)">$(url)</a>:</p>
<ul><li><strong>$(error)</strong></li></ul>
$(endif)
<p>Your cache administrator is <a href="mailto:$(admin)">$(admin)</a>.
$(signature)
</body></html>
 
netgus
just joined
Topic Author
Posts: 21
Joined: Fri Jan 27, 2012 2:01 pm

Re: Is it possible to modify the 403 error page?

Wed Jul 17, 2024 5:13 pm

is error.html inside webproxy folder................

if the page do not exist, press Reset HTML.............

error.html code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>ERROR: $(status)</title></head>
<body><h2>ERROR: $(status)</h2>
<hr noshade size="1px"/>
$(if error)
<p>While trying to retrieve the URL <a href="$(url)">$(url)</a>:</p>
<ul><li><strong>$(error)</strong></li></ul>
$(endif)
<p>Your cache administrator is <a href="mailto:$(admin)">$(admin)</a>.
$(signature)
</body></html>
Thanks for your help, it works.

Who is online

Users browsing this forum: GoogleOther [Bot], KillerBG, rabbitkiller, Valerio5000 and 29 guests