Hi,
Is there a way to control url opening from any online web page hyperlink clicked in ExeOutPut private browser ?
Thank-you,
Gilbert
Hi,
Is there a way to control url opening from any online web page hyperlink clicked in ExeOutPut private browser ?
Thank-you,
Gilbert
Not totally clear what you’re asking/meaning. But if you are loading online webpage in exeout, you might try this to open users default browser:
<a href="heexternal://http://moreonlineprofit.com"><b>CLICK HERE to Learn More</b></a>
This of course assumes you have control of the targeted page.
Hi,
Thank-you for your answer !
What I mean is that using the private server how is it possible to protect computer from phishing and other malicious programs in an online web page
Gilbert
That is a very good question!
Yes, you can use HEScript. The UserMain script contains an event which is fired before the navigator opens a URL:
function OnBeforeNavigate(…): Boolean
If this function returns True, then the navigation is cancelled.
Thank-you, that’s a good new…
Do you mind, please, to show an example using this function ?
TX
Gilbert
Sure, here is a simple one:
function OnBeforeNavigate(NewURL, TargetFrame: String): Boolean;
begin
// Before the publication displays a page. Set Result to True to stop the //operation.
if Pos("stopurl", ansilowercase(NewURL)) > 0 then
begin
Result := True;
Exit;
end;
Result := False;
end;
If the URL contains “stopurl”, the browser will cancel the navigation.
Good, I have blocked url without https that way :
function OnBeforeNavigate(NewURL, TargetFrame: String): Boolean;
begin
// Before the publication displays a page. Set Result to True to stop the //operation.
if Pos(“https”, ansilowercase(NewURL)) < 1 then
begin
Result := True;
Exit;
end;
Result := False;
end;
Thank-you !
here is a way to block multiple websites
function OnBeforeNavigate(NewURL, TargetFrame: String): Boolean;
begin
// Convert NewURL to lowercase for case-insensitive comparison
NewURL := AnsiLowerCase(NewURL);
// Block Dropbox, Google, and other specific sites
if (Pos("dropbox", NewURL) > 0) or
(Pos("facebook", NewURL) > 0) then
begin
Result := True; // Block navigation
ShowMessage("Access Denied! This website is blocked.");
Exit;
end;
Result := False; // Allow navigation if URL is not in the blocked list
end;