accesstv Posted September 15, 2017 Share Posted September 15, 2017 Hi there people I am in some bit of a situtation.. I need to be able to create a URL that redirects to an ip, however i need the url to have username and password that will transfer to the ip. Basically i want to give out the url to each user and for them to type there username/password at the end example http://url.goeshere.co.uk/username/password USER1 - http://url.goeshere.co.uk/user1/pass1 USER2 - http://url.goeshere.co.uk/user2/pass2 Both urls will then redirect to my ip and will need to be able to send the username and password also example http://my_ip:port/get.php?username=username&password=password&type=m3u&output=ts USER1 redirects to http://my_ip:port/get.php?username=user1&password=pass1&type=m3u&output=ts USER2 redirects to http://my_ip:port/get.php?username=user2&password=pass2&type=m3u&output=ts Quote Link to comment Share on other sites More sharing options...
Gandalf64 Posted September 15, 2017 Share Posted September 15, 2017 It's bad practice to send a password over a url. Though I don't know what you're after, but why not have them login at the redirect? Quote Link to comment Share on other sites More sharing options...
ginerjm Posted September 15, 2017 Share Posted September 15, 2017 Re-think your approach. Create a login form with a submit button. Let the login script process the uid and pswd and THEN send them to the url. If that url needs some id material, use a a SESSION var for the username (BUT NOT THE PASSWORD!) or pass that in the url still. The password s/b passed via a POST method (hence the form), not a GET. And it should never be passed again once the user has been authenticated. Quote Link to comment Share on other sites More sharing options...
Sepodati Posted September 16, 2017 Share Posted September 16, 2017 No idea what your trying to accomplish here, but it sounds like a bad idea. Generating a random code would be better than username and password. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.