Access Denied Page

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Access Denied Page

Postby giuliano » 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
giuliano
 
Posts: 33
Joined: Oct 12 05 7:20 pm

Postby adrien » 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
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Postby giuliano » 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 ?
giuliano
 
Posts: 33
Joined: Oct 12 05 7:20 pm

Postby ChrisH » 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.
Chris H.
ChrisH
WinGate Master
 
Posts: 388
Joined: Sep 13 03 1:38 am
Location: Canada

Postby giuliano » Jan 25 08 5:46 am

Yes that is what I was looking for.
giuliano
 
Posts: 33
Joined: Oct 12 05 7:20 pm


Return to WinGate

Who is online

Users browsing this forum: No registered users and 16 guests