-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some people points his domains to our IPS, so... check the domain and…
… goto hell if not *.foofind.*
- Loading branch information
daniel.remeseiro
committed
Jun 24, 2010
1 parent
3c49466
commit 7910c5e
Showing
4 changed files
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
class Zend_Controller_Action_Helper_Checkdomain extends Zend_Controller_Action_Helper_Abstract { | ||
|
||
function check(){ | ||
//some people point his domains to our ips, so if not *.foofind.* ... goto hell | ||
$domain = $_SERVER['HTTP_HOST']; | ||
$domain = explode(".", $domain); | ||
|
||
if ($domain[0] != 'foofind'){ | ||
header('Location: http://example.com' ,301); | ||
exit; | ||
} | ||
} | ||
|
||
|
||
|
||
} |