Shrander Posted October 18, 2008 Share Posted October 18, 2008 Alright, to explain what I am doing, I am working on a voting rewards page for a game server. Currently, my main worry is security. If there is a way to do so, how would I check if the page has been included by some external site, and if it has been, have it take action such as clearing variables? Link to comment https://forums.phpfreaks.com/topic/129022-solved-checking-if-a-page-has-been-included/ Share on other sites More sharing options...
Acs Posted October 18, 2008 Share Posted October 18, 2008 Use the get_included_files function -> http://pt2.php.net/manual/en/function.get-included-files.php Link to comment https://forums.phpfreaks.com/topic/129022-solved-checking-if-a-page-has-been-included/#findComment-668863 Share on other sites More sharing options...
philipolson Posted October 19, 2008 Share Posted October 19, 2008 Included by another site? If that's even possible then you have larger problems to worry about. Maybe I (or we) are misunderstanding the question? Link to comment https://forums.phpfreaks.com/topic/129022-solved-checking-if-a-page-has-been-included/#findComment-668903 Share on other sites More sharing options...
Bendude14 Posted October 19, 2008 Share Posted October 19, 2008 look into .htaccess files for stopping people hotlinking your site if thats what there doing? Link to comment https://forums.phpfreaks.com/topic/129022-solved-checking-if-a-page-has-been-included/#findComment-669071 Share on other sites More sharing options...
Shrander Posted October 19, 2008 Author Share Posted October 19, 2008 Acs, got a method worked out with that, thanks. Philipolson, I don't know PHP too well, I guess I am just too paranoid trying to prevent any issues I can think of arrises for people grabbing database information and using it. And Bendude14, it's a Windows server with no .htaccess files. Thanks for helping. Link to comment https://forums.phpfreaks.com/topic/129022-solved-checking-if-a-page-has-been-included/#findComment-669407 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.