Skip to main content
rami78
New Member
March 8, 2018
Question

URL Filtering / Regular expression

  • March 8, 2018
  • 2 replies
  • 30433 views

Dear All

 

I want to block all URLs containing our company domain in email format

 

Example lets say my email is rami@xyz.com.jo

 

I want to block all URLs contianing the string @xyz.com.jo

It should be blocked regardless of case

Example http://facss.com/123/page321/?email=user121@xYZ.com.jo 

 

 

 

    2 replies

    AtiT
    New Member
    March 8, 2018

    Hello,

    I am not a REGEXP expert but you can try:

     

    /(.*)\@xyz\.com\.jo(.*)/i

     

     

    rami78
    rami78Author
    New Member
    March 8, 2018

    Thank you for your reply however that did not work

    AtiT
    New Member
    March 8, 2018

    As I said am not a regular expression expert but I think it should work. By the other hand it is not working on FortiGate on my side, I tested it.

     

    What worked on my side is set a wildcard URL filter with this: *@xyz.com.jo*

    It is case sensitive, so you probably will need to set also something like this: *@xZY.com.jo*

    ...etc.

     

     

    rami78
    rami78Author
    New Member
    March 8, 2018

    I appreciate your efforts Anit. URL filtering is the first thing i tried but its not working either. I wonder if its a bug in hte OS, im running 5.2.10

    rwpatterson
    New Member
    March 8, 2018

    Try /.+\@xyz\.com\.jo.*/i

     

    () excluded...

    + instead of * (one or more as opposed to zero or more)