I am currently attempting to write 2 scripts all though one works it is extremly easy to hack a 2 year old could do it i need some help i am currently using this
<meta http-equiv="refresh" content="0; URL=http://<?=$user?>:<?=$pass?>@[url]www.Domains.com:2082/frontend/x/subdomain/doadddomain.html?domain=[/url]<?=$domain?>&rootdomain=mydomain.com
To create subdomains for visitors to a site and a simlar function to create POP3 email accounts but i want to change this i want it so its more secure the password & user name are stored out of the script.
My ideas are as follows:
Have $user & $pass stored in a configiration php file and make it required? would this stop people from viewing the file and seenig user name and password ?
But it still doesnt stop the following which is a HUGH problem.
1) When it meta refreshes it displays the user name and password as part of the meta refresh which is problem 1 as its a security risk
2) they remani logged in to Cpanel which is dangerous so i need to make it so they never enter Cpanel and the subdomain is created outside so they dont see it it displays a message then hay presto subdomain created they know it and all is done.
I would be graetfull for any suggestion on how to do this, to view other peoples answeres to these problems etc.
Many Many thanks in advance