We'd love to hear about it! Click here to go to the product suggestion community
So, I am trying to block based on a regex, but cannot find anywhere which would accept this. Specifically, I want to block editing on Wikipedia for a group of users - so I have a regex that checks Wikipedia site requests for the action=edit part at the end, but as far as I can tell I can only block based on domain, URL or keyword?
Does anyone know how I can do this?
did you check these kbs:
In reply to lferrara:
I looked at both those KBs, and neither of them cover this. One is for creating custom block categories, but it specifically states you can't use Regex, and the other is for guidance on Regex in general - which appears only to get used in the Exceptions section.
I am specifically trying to block using regex.
In reply to Tony Ayre:
please post what you are trying to block.
OK, so this is an example URL:
All edit pages for Wikipedia follow that similar format - the only bit that changes is the bit between the title= and the &
AFAIK it can't be done with regex, but you can achieve your goal. I've just tested it and it works.
Step 1.Protect > Web > Categories: add a categorie like this:
Step 2.Protect > Web > User activities: Create a new activity like this:
Step 3. Protect > Web > Policies: edit / create a policy ie.:
I've tested this on you're URL: https://en.wikipedia.org/wiki/The_Unconquered_(1940_play)I can view this page but can't edit it.
In reply to Peter-Paul Gras:
Thanks, that would work somewhat, but it would block all the other action types - eg. being able to check the edit history, and any permalinks to a specific version of the page.
So, I wouldn't want to block the following:
But your rule would do that I believe?
can you explain how to use the url categories to block what the user is asking?
Now i can't edit, all the other links keep working though...
Hi Peter-Paul Gra,
I followed you suggestion and it only blocks this link : https://en.wikipedia.org/w/index.php?title=The_Unconquered_(1940_play)&action=edit
All other links works just fine:
So Tony Ayre, if you only wants to block : https://en.wikipedia.org/w/index.php?title=The_Unconquered_(1940_play)&action=edit, follow the steps provided by Peter-Paul Gra.
In reply to H_Patel:
Yes it does work. However, I do consider it a workaround at the moment, rather than a resolution. One issue this will cause is blocking editing on other instances of the MediaWiki software (used by a number of sites) as well as Wikipedia.
At the moment, that shouldn't be an issue for me - but it may become one in the future. It'd be better if the XG system allowed blocking by regex. I shall post something on the Sophos Ideas site about it.
There is currently no better solution than I can think of.
RegEx is not supported in either Custom Categories or URL Groups.
The use case for it, how many customers need it, is very low.
In reply to Michael Dunn:
Hope you can consider to put regex even for web filtering.
Regex allows a better way to catch proper urls, sub domain.