David Schure
asked on
Need To Add A Password to a link
Need to add a password pop up modal in order to access the press page.
http://www.mediascrubber.com/index.html
When you click on the Media Assests the press page opens. I have a few different codes for modal popup forms but I am not sure on how to add it to a link. Any help is appreciated.
http://www.mediascrubber.com/index.html
When you click on the Media Assests the press page opens. I have a few different codes for modal popup forms but I am not sure on how to add it to a link. Any help is appreciated.
Hi,
I'm not sure what you are trying to do, can you elaborate...
If you have session with login then you can display the links / content depending of the role using server side code once they logged in no need for extra password.
htpasswd work ok to protect a page but this is not for popup so if the link open a popup that won't work.
Login and session is the best way for long term, I'm using this script this is very well coded
https://codecanyon.net/item/advanced-security-php-registerlogin-system/5282621
Check on your hosting panel most of them have password protection for page.
I'm not sure what you are trying to do, can you elaborate...
If you have session with login then you can display the links / content depending of the role using server side code once they logged in no need for extra password.
htpasswd work ok to protect a page but this is not for popup so if the link open a popup that won't work.
Login and session is the best way for long term, I'm using this script this is very well coded
https://codecanyon.net/item/advanced-security-php-registerlogin-system/5282621
Check on your hosting panel most of them have password protection for page.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Everyone for your suggestions!
EXPERT CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you so much Julian! You are the best!
You are welcome David,
Most simple will be to just add an Apache ACL using basic authorization.
Since your site uses raw Apache (no CMS) https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-apache-on-ubuntu-14-04 provides a good overview.
If you have many pages or will eventually require session management, consider switching to use WordPress.