View Full Version : PHP include detection
banaax
01-28-2006, 02:52 PM
So I have two websites on different servers. On website 2 I am going to do <? includes "http://www.website1.com/blah.php" ?> which I know I can do. My question is, is there anyway for a visitor to know that I am grabbing php from website 1 (I'm trying to keep it hidden that the two sites are linked), thanks
dilligaf
01-28-2006, 03:33 PM
Nope, the includes is processed on the server so the user sees just the plain old html.
...unless of course you copy a lot of content from the other site, in which case the search engines COULD (!) apply the dup content filter. But that's another subject entirely :)
ERE Breckenridge
01-29-2006, 07:51 PM
The answer is NO, nevertheless, to protect yourself you should set a variable in the included file and check for it in the master file before processing the rest of your script.
Also if server 2 is down users will get an include error message, therefore make sure you handle inclusion errors corrently. One simple way would be the suppress any inclusion errors using the @:
@include ("http://xyz.com/file.inc.php");
phoztech
02-05-2006, 09:25 PM
it would be possible if google is doing packet sniffing on incomeing outgoing traffic while they are indexing your site...... but i dont think they want to open that can of worms...
banaax
02-07-2006, 05:37 PM
Hey I apprechiate the help. The all the content I'll be showing on website 2 will not be seen or linked to from website1 (its just that website1 has more capabilities and permissions so I cant make the page from website2, and some people might disaprove if they know website2 is using website1's permissions), hopefully the "secret" php I make wont get indexed or anything. I'm really not concerned with google making the link between them, just other people. And I'll make sure to add that "@" incase if the server goes down.
banaax
02-16-2006, 11:58 PM
Okay, so no one can see where http://www.caniwin.com/arbitrage/ is getting its info from?
vBulletin v3.0.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.