PHP/HTML/Javascript Password Protect Image Primer Tutorial

PHP/HTML/Javascript Password Protect Image Primer Tutorial

PHP/HTML/Javascript Password Protect Image Primer Tutorial

So you’ve seen the title of this blog post, but supposing you were to forget that, and link the concepts below … what would you have thought it was about?

  • HTML/Javascript onerror event for img tag
  • (Image) file permissions at web server
  • Prompt for information to verify … “password”
  • PHP Asynchronous Processing via exec and cURL (perhaps)

Imagine you may have come up with a number of ideas … maybe the way many blogs use captcha to verify you are a real person? … or a quiz question you got wrong? … but no, we are talking about the components of a home-grown image (security) protection system at a website. We are not pretending that this should replace any hosting arrangements your web hosting is capable of, like password-protected directories (on Apache (web server (using Linux))), for instance, but here we have a couple of “home-grown” ideas.

  1. Not that impressive client solution … but simply one image with stringent file protection and the other identical image (content, but different name (or it can be a different place)) without … use HTML/Javascript Image_Password_Protected.html … live run here (“password” you need to run this is Windows_Home_Title_Bar.jpg)
  2. More impressive client/server solution (but there is more than one way to annoy cat lovers, if you know what I mean) … image has stringent file protection as its default condition, but will allow a user (who gets “password” correct) through for a few seconds, and continuing while the cache survives for them … use PHP/HTML/Javascript Image_Password_Protected.php … live run here (“password” you need to run this is Windows_Home_Title_Bar.jpg) … this is very much “get you started code” in that it has hard-codings regarding the image name (and who’s to know if you are lucky enough to have cURL … would recommend it highly)

Here are some helpful tutorials … thanks … below …

In solution 2 (the PHP one) you may see some 1 == 2‘ized code … that stuff for abandoned ideas … that idea was to have a recursive situation using iframe HTML tag … sometimes these iframe ideas work, but cannot recommend such approaches in a generic sense, and think iframe is generally under pressure … and just hope they never disappear.

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Event-Driven Programming, Operating System, Tutorials and tagged , , , , , , , , , , , , , , , , , . Bookmark the permalink.

13 Responses to PHP/HTML/Javascript Password Protect Image Primer Tutorial

  1. You have got some true insight. Why not hold some sort of contest for your readers?

  2. Spot on with this write-up, I truly assume this web site wants considerably additional consideration. in all probability be again to read way much more, thanks for that information.

  3. sport says:

    Merely a smiling visitant here to share the love (:, btw outstanding style and design. “Individuals may form communities, but it is institutions alone that can create a nation.” by Benjamin Disraeli.

  4. amazed says:

    Genuinely useful outlook, appreciate your sharing.. Extremely good mindset, thanks for giving.. of course, study is having to pay off. Adoring the posting.. with thanks

  5. energized says:

    Supporting the thread.. thanks Adoring the thread.. thanks for your insight sure, analysis is paying off. of course, investigation is having to pay off.

  6. do you agree says:

    I enjoy you expressing your point of view.. Enjoying the weblog.. glad I found it Definitely effective mindset, appreciate your expression.. Is not it awesome whenever you find a fantastic publish?

  7. saved says:

    I value you posting your perspective.. So content to get located this submit.. Excellent thought processes you possess here.. Enjoying the post.. many thanks

  8. What a information of un-ambiguity and preserveness of precious familiarity concerning unpredicted feelings.|

  9. owe says:

    Hello.This article was extremely remarkable, particularly since I was looking for thoughts on this issue last Thursday.

  10. Bret Stahr says:

    cool read indeed. OK I would like to contribute too by sharing this cool site with downloads, that personally helped me collect some awesome and easy to tweak. take a look at http://scarab13.com.

  11. sos-lar.pt says:

    thank you very much

  12. my blog says:

    Hi there mates, pleasant piece of writing and pleasant urging commented here, I am actually enjoying by these.|

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>