Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems
Jan 24 08 11:54 pm
Hi,
I have banned some sites, using ban list under system policies.
When the user try to access that page I show a customized allert page.
I have modified the value of the following key
HKLM\Software\QBik Software\Wingate\ErrorStrings\HTTP\AccessDeniedDescription
with
<META HTTP-EQUIV="Refresh" CONTENT="2;URL=http://mysite/HTTP403.php">
On "mysite" I have a webserver with php that allows me to show the page to the user.
Does Wingate manage a variable with the requested URL ?
With PureSight plugin the are some variable that I can use (ex. ##DATASOURCE##).
Thanks in advance,
Stefano
Jan 25 08 12:01 am
when using the error strings, these aren't "built", so there's no way to insert variables like the requested URL.
PureSight on the other hand does have some variables it can insert - I'm pretty sure the URL is one of them.
Regards
Adrien
Jan 25 08 2:31 am
The other Error Messages (ex. ErrorStrings\SOCKS) allows the use of %s and %u. Isn't this possibile with ErrorStrings\HTTP ?
Jan 25 08 4:44 am
Stefano,
I have over the years looked at alternatives to WG's standard error messages. Lately what I have been doing is replacing the registry entry with something like this:
<script language="javascript">function show(){window.open("http://main:8500/Home/?name="+document.location.host,"_self");}window.onload=show();</script>
-where main:8500/Home/ in this case is my error web page and I'm using ColdFusion as the web server thus the 8500
-this sends to the server the domain name of the banned page in the URL as if it were a form submission using the GET method with 'name' as the id of the input. You can then run a server side script to display the banned url or whatever.
Hope this helps.
Jan 25 08 5:46 am
Yes that is what I was looking for.
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.