Monthly Archives: August 2012
Limit access to website based on referrer
Posted on: August 29, 2012
We use suphp on this server and here was the solution. In the user’s public_html file we created a .htaccess with the following: SetEnv PHPRC /home/$user/public_html/php.ini Then a php.ini file with: auto_prepend_file = /home/$user/public_html/checkrefer.php checkrefer.php <?php session_start(); echo $_SESSION[‘allowme’]; //First we check to see if a valid session exists if ($_SESSION[‘allowme’]==1){ //keep going and allow …
Read More
- English Support
- 24/7 x 365
- Branded Support
- Reduced Overhead
- Linux Experts
- Friendly Staff