Timeline for How to block / restrict a list of URLs using Rules?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 5, 2016 at 9:06 | comment | added | Pierre.Vriens | @GoodSp33d Using PHP snippets as part of Rules (Conditions or Actions) is something you should try to avoid whenever you can. Have a look at my answer to this question here how you can do so, without PHP. | |
Aug 10, 2016 at 17:51 | history | edited | Pierre.Vriens |
edited tags
|
|
Jul 18, 2016 at 12:32 | answer | added | Pierre.Vriens | timeline score: 2 | |
Jul 18, 2016 at 12:32 | history | edited | Pierre.Vriens | CC BY-SA 3.0 |
Improve title and formatting, and add module link
|
Mar 3, 2013 at 4:31 | history | tweeted | twitter.com/#!/StackDrupal/status/308072006589501440 | ||
Mar 1, 2013 at 15:57 | answer | added | Aboodred1 | timeline score: 1 | |
Mar 1, 2013 at 14:15 | comment | added | GoodSp33d | No you can execute PHP Snippets as part of Rules module, instead of Events you need to choose Execute as PHP Code in the drop down. Test your rules in local environment once as errors in codes can sometimes break your site. | |
Mar 1, 2013 at 14:10 | comment | added | Dylan Spencer James | Are you saying to do this outside of Rules in a module? Sorry, slightly confused. | |
Mar 1, 2013 at 14:08 | comment | added | GoodSp33d |
You need to use PHP Snippet rather than other events. In PHP code use an array, which will have all the blocked URLs and compare request_uri() with this array (array_search() or in_array() will come in handy.
|
|
Mar 1, 2013 at 13:57 | history | asked | Dylan Spencer James | CC BY-SA 3.0 |