Skip to content

Commit

Permalink
Used dynamic domain name restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
nightsh committed Feb 12, 2014
1 parent ac0fae4 commit 3af9a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.local.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

$origin = parse_url($_SERVER['HTTP_REFERER']);

if($origin['host'] != 'theblacksea.eu') {
if($origin['host'] != $_SERVER['SERVER_NAME']) {
die('Warning, access forbidden!');
}

Expand Down

0 comments on commit 3af9a2b

Please sign in to comment.