| 
| 
 | 
 | 
 | 
 | 
 | 
| 		
			
			 | 
		#2 | 
| 
			
			
			
			 a.k.a. Sparky 
			
			
		
			
				
			
			
			Join Date: Sep 2004 
				Location: West Palm Beach, FL, USA 
				
				
					Posts: 2,396
				 
				
				
				
				 | 
	
	
	
		
		
		
		
		 On a bookmark or typein, HTTP_REFERER won't be set - and your condition skips your includes in that case. 
		
	
		
		
		
		
		
		
			Code: 
	          $referrer = $_SERVER['HTTP_REFERER']; 
          if( (stristr($referrer, 'domain.com')) || ($referrer=="") ) { 
               echo '<INSERT CODE>'; 
          } else { 
               include $_SERVER['DOCUMENT_ROOT'].("/path/to/file.html"); 
          }
				__________________ 
		
		
		
		
		
		
	
	SnapReplay.com a different way to share photos - iPhone & Android  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
			
		
		
		
	 | 
| Thread Tools | Search this Thread | 
| Display Modes | Rate This Thread | 
		
  | 
	
		
  |