Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
Answers

ASM - Allow Emails form in URL using REGEX

Hey to everyone


i'm having a hard time to find a way to allow URL that contain a E-mail forme , ASM stop it because it 's taken as an Illegal File type ( .ma , .fr , .com or even .ac.fr ) , so what is the best way to solve this issue , is it possible to use regex to solve the probléme ? URL from


Http URL /user/Emailuser@somthing.com/information /user/Emailuser@somthing.com


P.S : I'm a verry beginner in ASM . And thank you for helping me !

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Here's the regex pattern you could use:

^\/user\/([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})(\/.*)?$

.

Mind you, the use of regex is resource intensive.

0
Comments on this Answer
Comment made 2 months ago by Amine 54

thank you but where can i add this regex to stop bloking this form of urls ? so please can you give me more indications

0