Jump to content

how to hiding Dll extension in the url in IIS?


PALF

Recommended Posts

  • 1 year later...

Try to create simple html and insert frame with your dll path


<head>
<script>
function getInlineFrame()
{
document.getElementById('InlineFrame1').src=s;
}
</script>
</head>
 
<body onload="getInlineFrame();">
 
<div id="Layer1" style="position:fixed;left:0px;top:0px;right:0px;bottom:0px;z-index:2;" title="">
<iframe name="InlineFrame1" id="InlineFrame1" style="position:absolute;left:0%;top:0%;width:100%;height:100%;z-index:0;" src="about:blank" frameborder="0">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
</div>
 
</body>
  • Like 1
Link to comment
Share on other sites

  • 8 months later...

Just discovered how to do it on apache, just use DirectoryIndex

 

<Directory "C:/mydlldir/">
    Options FollowSymLinks ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
    DirectoryIndex mydll.dll
</Directory>
Alias /myapp "C:/mydlldir"

 

Navigating to http://myserver.com/myapp will load the dll, hiding the extension in the url.

 

You should be able to set the directory index file specifically in IIS too, of course.

  • Upvote 1
Link to comment
Share on other sites

  • 4 months later...

Just discovered how to do it on apache, just use DirectoryIndex

 

<Directory "C:/mydlldir/">

    Options FollowSymLinks ExecCGI

    AllowOverride None

    Order allow,deny

    Allow from all

    DirectoryIndex mydll.dll

</Directory>

Alias /myapp "C:/mydlldir"

 

Navigating to http://myserver.com/myapp will load the dll, hiding the extension in the url.

 

You should be able to set the directory index file specifically in IIS too, of course.

 

 

i use this but every logout to login form again, original .dll will appear in url link so i use this

<html>
	<head>
	</head>
	<frameset rows="100%,*" border="0">
	  <frame src="http://domain.com/your.dll" frameborder="0"></frame>
	  <frame frameborder="0" noresize=""></frame>
	</frameset>
</html>
Link to comment
Share on other sites

  • 2 weeks later...

I can make it the default document, but don't necessarily want it to be the default.  I am trying to get URL rewrite to work and while I can get test the matching successfully, the rewrite does not happen when coming into the server.

 

Can someone that has gotten URL rewrite to work give me their process?  I must be missing something somewhere.

 

Thanks

Link to comment
Share on other sites

Hi,

 

Click on "Add a rule", then fill the pop-up window as shown in this screenshot (it is the French-translated version of URLRewrite because my Windows Server is on a French server, but you'll find the same fields in the same place in English).

Don't forget to check the two checkboxes in the bottom of the screen.

 

More détails here: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module

 

 

 

post-895-0-70972900-1496940905_thumb.png

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...