Jump to content

how can I recognize a domain (a webmaster website) request from within my site ?


quecoder

Recommended Posts

Hello ,

I want to offer services for webmasters from within my website , let's assume the service is , their users can invite their friends to those webmaster websites using my service that let's the users to input their friends email addresses and type in a personalized invitation message and send it .

what I did is , enabled these webmasters to put a link that opens a pop up window of a page in my website that shows the invitation form and users can send and then close the pop-up window to return to webmaster site.

 

As I wanted to recognize these webmasters domain names , essentially to both send the invitation with the domain name to where users friends shall go when invited, and to know how much emails this domain has consumed because sending stmp emails are not free, so I should limit their quota to max 100 or so .

 

I used a very basic function in php to recognize the webmasters by their domains:

$url = $_SERVER['HTTP_REFERER']; 
$domain = parse_url($url);
$domain = $domain['host'];
if( substr($domain, 0, 4) == 'www.') { $domain = substr($domain, 4); }

owner of this domain - $domain -  ofcourse had been registered it in my website and I insert the required information in the database.

 

I know that this is a very basic , but that is because I'm a newbie in PHP so I want to solve these problems :

1 -  Webmasters can fake the Referrer address to gain extra messages sent by their users or to use my service when they are not registered at all .

2 -  Using just this pop-up to provide my service doesn't let me know much information about the incoming request owner .

3 -  How can I use this service to my benefit , or to even increase  my PageRank ( does placing a pop-up window link of my website in different webmaster sites increase it ) ?

 

(Sorry my English sucks)

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.