forked from 9inevolt/OverRustle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblacklist.sample.php
More file actions
36 lines (31 loc) · 849 Bytes
/
blacklist.sample.php
File metadata and controls
36 lines (31 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
//keyword ban list
$banlist = array(
'phrase' => 'Ban Reason',
'channelNameYouDoNotLike' => 'Hate speech why you do not like this person',
);
//keeps people from embedding the site within itself
if(strpos($stream,'destiny.gg') !== false || (strpos($stream,'overrustle.com') !== false))
{
header('Location: http://overrustle.com/destinychat');
}
//fixes a bug
if($stream == "#")
{
header('Location: http://overrustle.com/destinychat');
}
//sends people back to destiny.gg for destiny's stream
if(strtolower($stream) == "destiny")
{
header('Location: http://destiny.gg/bigscreen');
}
//keyword banning logic
foreach($banlist as $banItem => $banReason)
{
if(stripos($stream, $banItem) !== false)
{
header("HTTP/1.0 500 Internal Server Error");
echo "Phrase '" . $banItem . "' has been banned. Reason: " . $banReason;
exit;
}
}