rocoso Posted February 4, 2008 Share Posted February 4, 2008 Hi I have a dynamic header generator... works like this www.mysite.com/headerfont.php?say=theheader Makes pretty headers using GD and a font... I would like restrict access to the script so it works only if your at the site. thanks Link to comment https://forums.phpfreaks.com/topic/89341-restrict-access/ Share on other sites More sharing options...
eZe616 Posted February 4, 2008 Share Posted February 4, 2008 How about setting a cookie or a session id with f.e. your site's name in it and the headerfont.php checks the cookie or session on top of the page. Link to comment https://forums.phpfreaks.com/topic/89341-restrict-access/#findComment-457506 Share on other sites More sharing options...
pdkv2 Posted February 4, 2008 Share Posted February 4, 2008 you mean only registered users should access the url ? Link to comment https://forums.phpfreaks.com/topic/89341-restrict-access/#findComment-457510 Share on other sites More sharing options...
rocoso Posted February 4, 2008 Author Share Posted February 4, 2008 Just users accessing the domain Link to comment https://forums.phpfreaks.com/topic/89341-restrict-access/#findComment-457514 Share on other sites More sharing options...
pdkv2 Posted February 4, 2008 Share Posted February 4, 2008 you can restrict the users using .htaccess Link to comment https://forums.phpfreaks.com/topic/89341-restrict-access/#findComment-457522 Share on other sites More sharing options...
eZe616 Posted February 5, 2008 Share Posted February 5, 2008 Just users accessing the domain wouldn't they be accessing the domain already just by typing www.mysite.com/headerfont.php, even if they got the link from someplace else?So it wouldn't really matter right? Or you mean they can only use the page, if they already come from a www.mysite.com page? Link to comment https://forums.phpfreaks.com/topic/89341-restrict-access/#findComment-458703 Share on other sites More sharing options...
rocoso Posted August 6, 2008 Author Share Posted August 6, 2008 wow this is hold one... i put this on hold.. I dont want just anyone to be able to generate the fancy headers on there own some other website as it will use up my severs resources. Link to comment https://forums.phpfreaks.com/topic/89341-restrict-access/#findComment-609122 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.