diff --git a/src/usr/local/www/services_wol.php b/src/usr/local/www/services_wol.php
index 006d4e8cba..c177b631a9 100644
--- a/src/usr/local/www/services_wol.php
+++ b/src/usr/local/www/services_wol.php
@@ -57,7 +57,7 @@ function send_wol($if, $mac, $description, & $savemsg, & $class) {
 $savemsg = "";
 $class = "";
 
-if ($_REQUEST['wakeall'] != "") {
+if ($_POST['wakeall'] != "") {
 	foreach (config_get_path('wol/wolentry', []) as $wolent) {
 		send_wol($wolent['interface'], $wolent['mac'], $wolent['descr'], $savemsg, $class);
 	}
@@ -167,7 +167,7 @@ print $form;
 			<?=gettext("Add");?>
 		</a>
 
-		<a href="services_wol.php?wakeall=true" role="button" class="btn btn-primary">
+		<a href="services_wol.php?wakeall=true" role="button" class="btn btn-primary do-confirm" usepost>
 			<i class="fa-solid fa-power-off icon-embed-btn"></i>
 			<?=gettext("Wake All Devices")?>
 		</a>
@@ -215,27 +215,11 @@ print $form;
 			<?=gettext("Add");?>
 		</a>
 
-		<button id="wakeall" class="btn btn-primary">
+		<a href="services_wol.php?wakeall=true" role="button" class="btn btn-primary do-confirm" usepost>
 			<i class="fa-solid fa-power-off icon-embed-btn"></i>
 			<?=gettext("Wake All Devices")?>
-		</button>
+		</a>
 	</div>
 </div>
-
-<script type="text/javascript">
-//<![CDATA[
-events.push(function() {
-
-	$('#wakeall').click(function() {
-		if (confirm("Are you sure you wish to Wake All Devices?")) {
-			postSubmit({wakeall: 'true'}, 'services_wol.php');
-		}
-	});
-
-});
-//]]>
-</script>
-
 <?php
-
 include("foot.inc");
