From 83caf2c1833ee9732483f70e3525909bf507849a Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Wed, 28 Jul 2021 01:21:48 +0200 Subject: [PATCH] This is not a browser --- plugins/url | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 plugins/url diff --git a/plugins/url b/plugins/url new file mode 100644 index 0000000..463f66e --- /dev/null +++ b/plugins/url @@ -0,0 +1,10 @@ +#!perl + +sub command { + my ($self, $cart, $command) = @_; + if ($command =~ m[^https?://]) { + print "This is not a browser..."; + return ACCEPT; + } + return NEXT; +}