Author Topic: Web access program?  (Read 781 times)

0 Members and 1 Guest are viewing this topic.

Xedafen

  • Guest
Web access program?
« on: October 18, 2014, 11:55:59 pm »
I am new to php and mysql, so maybe someone could help me with this. I want to make an application that when ran, it launches a web page. I can do that. However, I want only the people who downloaded the program to be able to access this part of my website. So, my problem is, how can I make it so when a person tries to access the website without the program installed, it wont give them access, but if they do have it installed and they launch it will give them access. Is this possible? Any help?


Extra info: I am using Savant as a web server application, and my website is being run off a .onion domain. Also, i am running it on my own computer.


Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Web access program?
« Reply #1 on: October 19, 2014, 12:33:49 am »
This is an interesting problem. Maybe you could open that website only through the program, this program would generate a valid access token and pass it to that website, this way the website would know this person came through a program and has it installed.

Another method could be to install the program and have it run as a service, having it connect to the server backend and establish a connection. Server would mark this IP and allow it to pass through - the program would need to run all the time...

Xedafen

  • Guest
Re: Web access program?
« Reply #2 on: October 19, 2014, 03:46:44 am »
Thank you. I will look into this more deeply based on what you said.

Offline HTH

  • Official EZ Slut
  • Administrator
  • Knight
  • *
  • Posts: 395
  • Cookies: 158
  • EZ Titan
    • View Profile
Re: Web access program?
« Reply #3 on: October 19, 2014, 06:10:04 pm »
Look into some google authenticator stuff. Where the program on your computer generates a key based on some unique but viewable property (could even be external up address) then the user passes it to the website. Once it does you could whitelist that ip for x hours, or x days even.

I realize that is very similar to what kulver mentioned, but i thought the google auth might help for ideas :)
<ande> HTH is love, HTH is life
<TurboBorland> hth is the only person on this server I can say would successfully spitefuck peoples women

Xedafen

  • Guest
Re: Web access program?
« Reply #4 on: October 27, 2014, 12:03:19 am »
Look into some google authenticator stuff. Where the program on your computer generates a key based on some unique but viewable property (could even be external up address) then the user passes it to the website. Once it does you could whitelist that ip for x hours, or x days even.

I realize that is very similar to what kulver mentioned, but i thought the google auth might help for ideas :)
Would this work do you think?

Code: (php) [Select]
if($_SERVER['HTTP_USER_AGENT'] == "MyApp") {// Web page here

}
else{ // its not requesting from your app
 // redirects to another page if they dont have the app
}
« Last Edit: October 27, 2014, 07:12:24 am by Kulverstukas »

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Web access program?
« Reply #5 on: October 27, 2014, 07:14:45 am »
It would not work, User-agent is for the browser, so it would seem that the website was requested without the program each time. What you want is send some parameter/token with the header.