Forum Discussion

SP_266134's avatar
SP_266134
Icon for Nimbostratus rankNimbostratus
Dec 08, 2017

Irule to block all URL that contains # in the urls

Hi Guys, I am using SOLR 4.10 and want to block all incoming request that has in the URL. http://abc.com/solr/data/select?q="test"; should be OK but i want to block all other URL that contains an like

 

This I rule is not working, can some on point me what is wrong

 

when HTTP_REQUEST { if { [HTTP::uri] contains "" } { HTTP::respond 403 content "Please contact the administrator.Access Denied" } }

 

1 Reply

  • Hi,

     

    Hash character in an url is never sent by the browser to the server. It’s a fragment identifier used locally by the browser to move th window to a label inside the document!

     

    So if you check this url from a browser, you won’t see it blocked!