Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "rules_check_url" : {
- "LABEL" : "Disallow node/* access",
- "PLUGIN" : "reaction rule",
- "OWNER" : "rules",
- "REQUIRES" : [ "rules" ],
- "ON" : { "init" : [] },
- "IF" : [
- { "text_matches" : {
- "text" : [ "site:current-page:url" ],
- "match" : "node/\d+$",
- "operation" : "regex"
- }
- }
- ],
- "DO" : [
- { "drupal_message" : {
- "message" : "Sorry, URLs like [site:current-page:url] are not allowed around here ...",
- "type" : "error"
- }
- },
- { "redirect" : { "url" : "no_access" } }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement