Forum Discussion
URL masking
is there actually definitive code for masking urls? I want users to be able to go to https://www.test.com and whatever happens behind the scenes, the url stays there - for security. What actually happens is it offloads SSL and passes back a set of nginx boxes which I need to mask. Everything else in the design works except for the masking the url. Thanks.
- Stanislas_Piro2
Cumulonimbus
Hi,
there is no solution in the reverse proxy to hide the real URL in a browser.
For security reason, the browser display the real URL and don't let server display another URL than the real one (if you go to server http://www.iwillhackyou.com and it display http://company.com, it is not safe)
One solution is to include your web site in a frame... you can try this irule (not tested)
when RULE_INIT { Define the main page when the user browse the URI "/" set static::main_uri "/logon.php" this is the web page to create the frame and call the URI above set static::frame_reponse_page { Title of your webpage <body> Your browser does not support frames </body> } } when HTTP_REQUEST { if {[HTTP::path] equals "/"} { HTTP::respond 200 content [subst -nobackslashes $static::frame_reponse_page] noserver } }
the static::main_uri variable must be set with the URL of the default URL of the website (must not be not /)
the main browser page will stay / and the user will browse website inside the frame...
Note: The code is updated to correct quote issue (not tested)
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com