Forum Discussion
Amine_373499
Nimbostratus
Dec 10, 2018ASM - 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 !
- JG
Cumulonimbus
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.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects