Jump to content
accesstv

Help really needed please

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

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? 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

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.