fafa0 Posted July 30, 2014 Share Posted July 30, 2014 Hello I'm new in PHP but I need a help If it possible. I want to Know which domain used my php script . For example when some one run installer or run index.php an email send to me that contain the domain name. Or some thing like this that I used for any php code. so thanks Link to comment https://forums.phpfreaks.com/topic/290193-how-find-domains-that-used-my-php-script/ Share on other sites More sharing options...
trq Posted July 31, 2014 Share Posted July 31, 2014 I find it hard to believe you have a script but can't write this functionality. Where are you stuck exactly? Link to comment https://forums.phpfreaks.com/topic/290193-how-find-domains-that-used-my-php-script/#findComment-1486515 Share on other sites More sharing options...
fafa0 Posted July 31, 2014 Author Share Posted July 31, 2014 I want know which site use my script or theme. We can : 1. put google analytic code in admin area so we will know . 2. use a image in admin area that load from a domain (e.g.: aaaa.com/logo.jpg) and we can go to Cpanel and see "lasted visit" and see "referral site" but I want to use a code that just one time send me domain and I know how many site used my php themes or scripts. Link to comment https://forums.phpfreaks.com/topic/290193-how-find-domains-that-used-my-php-script/#findComment-1486520 Share on other sites More sharing options...
SergeiSS Posted July 31, 2014 Share Posted July 31, 2014 but I want to use a code that just one time send me domain and I know how many site used my php themes or scripts. Everyone can remove this code and you won't get to know that script was used. Link to comment https://forums.phpfreaks.com/topic/290193-how-find-domains-that-used-my-php-script/#findComment-1486567 Share on other sites More sharing options...
trq Posted July 31, 2014 Share Posted July 31, 2014 Again, Where are you stuck exactly? It seems a pretty simple requirement. Link to comment https://forums.phpfreaks.com/topic/290193-how-find-domains-that-used-my-php-script/#findComment-1486576 Share on other sites More sharing options...
phpPeter Posted August 1, 2014 Share Posted August 1, 2014 Just write a simple log-service, which will get the domain and/or IP as parameter from your script on the remote site. The log-server just logs each call into the database with the given domain and the current timestamp. Then you will have all infos you need. Include a simple call to the log service on your server (e.g. http://yourserver/log?IP=123.34.45.56), that's all. Link to comment https://forums.phpfreaks.com/topic/290193-how-find-domains-that-used-my-php-script/#findComment-1486631 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.