Jump to content

One solution to hide the entire URL...


Luis Ribeiro

Recommended Posts

Hi,

 

I dont know if anyone here had a possible solution to the problem of visualizing the entire URL.

 

I found an easy way just by using HTML code in the webserver.

 
For example: instead of presenting "http://www.mydomain.com/app/uniapp.dll", show only "http://www.mydomain.com".
 
Download and extract the file "index.zip" and modify the HTML code, to your case...

 

 

UniGUI is excelent, Farshad!... Great work!

Congrats!

 

Luis Ribeiro

 

https://www.dropbox.com/s/obi9u3xbo1mreki/index.zip?dl=0

  • Upvote 2
Link to comment
Share on other sites

Hi,

A good article :

 

http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

 

Ok,

Let say you have just suscribe a VPS server, and you want to hide your IP adresse :

www.xxx.xxx.x.x/myproject.dll

To

www.mycompany.com/myproject

 

OK, with rewrite 2.0 module you can do it easily.

 

Question :

Is the server just display "mycompany.com" or must i buy a domaine mycompany.com ?

 

In the first case (juste a display), what about a conflict domaine if mycompany.com existe realy ?

Thx.

Link to comment
Share on other sites

Question :

Is the server just display "mycompany.com" or must i buy a domaine mycompany.com ?

 

In the first case (juste a display), what about a conflict domaine if mycompany.com existe realy ?

Thx.

 

In order to see your VPS under a domain name and not with its IP address, you have 2 options.

 

1. Buy a domain name

2. Use your domain name and give a subdomain name to the VPS.

 

Lets say that your VPS has the ip 1.2.3.4 and your main domain is mycompany.com

Add an A record to your DNS zone with a subdomain name (e.g. webapps.mycompany.com.) and 1.2.3.4 as IP

  • Upvote 1
Link to comment
Share on other sites

Thx Lema

 

>> 2. Use your domain name and give a subdomain name to the VPS

 

Is that possible if my actually domain name was buy from a company A and my new VPS from a company B ?

 

Thx

Yes, it is possible.

Of course you need access to your DNS entries in order to add a new record.

Link to comment
Share on other sites

Yes, it is possible.

Of course you need access to your DNS entries in order to add a new record.

 

and to get all functions running with one and only domain name. So you can host "mydomain.com" at provider A as a classic website (www.) and as domain for your mail, but also create a subdomain ("subdomain1.mydomain.com") and point that subdomain to provider B (111.222.333.444), where you host your VPS. Thats also important if you want to use SSL with your domain, get a wildcard certificate for your domain and run the secured UniGUI applications on "subdomain1.mydomain.com". So you even can change the VPS where you host your UniGUI applications very easily: change the DNS entries of the subdomain and you are done. 

 

brfc

  • Upvote 1
Link to comment
Share on other sites

It's better to share the html code...

Create a file named " index.html" and copy the following code into it

 

 

-----------------------------------------------------------------------------------------------------------

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 FRAMESET//EN">
<HTML>
<HEAD>
<TITLE>Welcome</TITLE>
</HEAD>
 
<link rel="shortcut icon" href="your-icon.ico" type="image/x-icon" />
<link rel="icon" href="your-icon.ico" type="image/x-icon" />
 
<FRAMESET ROWS="100%">
  <NOFRAMES>
    <HEAD>
    <TITLE>Welcome</TITLE>
    <META HTTP-EQUIV="REFRESH" CONTENT="0; URL='http://your-domain.com/apps/app-name.dll'">
    </HEAD>
    <BODY>
    <P>Your browser does not seem to support frames or frame support has been disabled.</P>
    <P>Please <A HREF="http://your-domain.com/apps/app-name.dll">click here</A> to proceed to the site.</P>
    </BODY>
  </NOFRAMES>
</FRAMESET>
 
<FRAMESET ROWS="100%">
  <NOFRAMES>
    <HEAD>
    <TITLE>Welcome</TITLE>
    <META HTTP-EQUIV="REFRESH" CONTENT="0; URL='http://www.your-domain.com/apps/app-name.dll'">
    </HEAD>
    <BODY>
    <P>Your browser does not seem to support frames or frame support has been disabled.</P>
    <P>Please <A HREF="http://www.your-domain.com/apps/app-name.dll">click here</A> to proceed to the site.</P>
    </BODY>
  </NOFRAMES>
</FRAMESET>
 
</HTML>
  • Upvote 1
Link to comment
Share on other sites

  • 3 years later...

Hi all

Tell me anybody how hide  dll after logout to login form..I'm deploy IIS by manual  default document I set dll  but when logaut to login form in adressbar showing dll

Best regards

 

Which version of UniGUI?

Link to comment
Share on other sites

i made it with the uniGui-loading gif ..
 
1. create a index.html file with lines like:
<!DOCTYPE html>
<head>
<title>... loading...</title>


<meta http-equiv="X-UA-Compatible" content="IE=edge"><style type="text/css">body { margin:   0; overflow: hidden; } #iframe{position:absolute;left:0px;top:0px;z-index:1;width:100%;height:100%;border:none;}#cover {position:absolute;left:0px;top:0px;z-index:2;width:100%;height:100%;background:#ffffff;background:url(/files/loading.gif) no-repeat center center;}#loading-mask {  position:absolute;left:0;top:0;width:100%;height:100%;z-index:20000;background-color: #e2e2e2;}#loading {position: absolute; left:50%;top:50%;padding:2px;z-index:20001;height:auto;margin:-35px 0 0 -30px;}#loading .loading-indicator { background: url(/files/loading.gif) no-repeat;color:#555;font:bold 13px tahoma,arial,helvetica;padding:16px 52px;margin:0;text-align:center;height:auto;}</style><script type="text/javascript">function on_load(iframe) {try {var doc = iframe.contentDocument || iframe.contentWindow.document;  document.getElementById("loading-mask").style.display = "none"; document.getElementById("loading").style.display = "none";} catch (e) { alert('exception:' + e);}}</script></head><body><iframe id="iframe"src="uniGUI.dll" frameborder="0" onload="on_load(this)"></iframe><div id="loading-mask"></div><div id="loading"><div class="loading-indicator">Loading...</div></div></body></html>

2. Point the uniGui to the same adress when terminate

 

 

unit ServerModule -> ServerMessages ->

 

Exception Template:

<script type="text/javascript"><!--
window.location.reload();
//-->
</script>

InvalidSession

<script type="text/javascript">
<!--
window.location.reload();
//-->
</script>

..

 

Hope that helps

 

Erich

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...