JDamianB
Jun 01, 2023Altostratus
Detecting /# in an URL
Hi
I created an iRule to permit/deny the access to the URL /#/admin according to the client address.
My problem is neither [HTTP::uri] nor [HTTP::path] contain #/admin
I observed navigators and curl "removes" the # and its trailing part (#/admin) from the GET
GET / HTTP1.1
But, on the other hand, the page retrieved from / is different to the one from /#/admin, then, somehow #/admin reaches the server and shows different HTML, doesn't it?
I'm confused.
How to make the iRule detect /#/admin?
As I suspected, the #/admin is processed in the client side and it is not sent to the server. The next wikipedia article explains the use of fragments: