Skip to content

Commit

Permalink
less non-legit bots, more CPU cycles
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico committed Mar 18, 2023
1 parent 84cd016 commit 5322532
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions radio/skipsong.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?php
if ($_SERVER['HTTP_USER_AGENT']==''){
http_response_code(403);
exit(0);
}
//We've nothing to say to most impolite bots

session_start();
chdir('..');
require_once('./config.php');
Expand Down

0 comments on commit 5322532

Please sign in to comment.