Forum Discussion

Gary_375401's avatar
Gary_375401
Icon for Nimbostratus rankNimbostratus
Oct 25, 2018

Block URLs from scraping website behind F5s

Hi,

I have no experience at all with the F5s so looking for some help. I would like to block a couple of URLs from scraping a website behind the F5s.

2URLS I would like to block are

https://example.ie/Website/AMSREG/AMSRegWeb.nsf/(getAppsNear)?OpenPage https://example.ie/Website/AMSREG/AMSRegWeb.nsf/(getApps4DT)?OpenAgent

Would someone be able to assist on this? I found this for IP addresses - would it be similar for URLSs If I create the iRULE would I then have to "attach" it to the website that it is scraping?

when CLIENT_ACCEPTED {

if { [IP::addr [IP::client_addr] equals xx.xx.xx.xx/xx] } {

    reject
}

}

Thanks