Tag Archives: Password Protect

Password-protect my whole site.

I want to password-protect the whole site. I’ve got CPanel nonetheless it won’t allow to do the / (public_html) seeing that password-protected. How do you do that: vintage: The best technique I’ve found is to use a mix of a single server-side include along with a session variable, i always tie into the unique identifier on the database. The pseudo-code would be something like this kind of: — Site determines session variable to check out if user can be logged in. — in the event user is logged with, he/she can log onto the site — if user is not logged in, he/she is redirected into a login page — if customer attempts to sign in and match is found in database, unique identifier is retrieved and composed to session variable Certainly, the exact syntax will depend on your programming dialect, but you have the idea. Uhm yes! But i’m not thinking about doing a entire PHP programming just for this. Can’t this be done which has a single. htaccess report i have got never used the. htaccess file but i assume it could, and there may be a tool above each of the forums to produce one. yep saw … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Help! Nowhere hidden to put private config file!

On the new website, all I’ve is a actual directory on my personal FTP. I do not have any directories underneath it helping put config files, we don’t want anybody to determine. The people along at the host said in order to password protect the directory the config file is currently in (a subdir in the root) with htaccess, but merely do this then the PHP include()s won’t be able to access it. Possibly there is any other way to make this file private on the outside world With thanks! You could take a step like this: PHP: if  (  $_SERVER’PHP_SELF’  ==  ‘/protectedFolder/protectedFile. php’  )        die(  ‘Private  record,   buddy.   Step  back again. ‘  ); I believe should work. Naturally, you change /protected… on the appropriate folder/file, relative on the *server root*. Ah I see, so should the actual file inside the browser is the private one, it’s going to display the meaning, but if it is a different page as well as private file is just being included, it won’t Because it isn’t really the current page I think I getcha. With thanks, buddy WE wouldn’t even show a message. Just forward them onto for … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

How does one block of part of there website?

How to have a page on my website which has a link on it using a download. But the user cannot return that page through just entering of which same URL of their directory They could only access the item via a website or button or even been redirected You would need password security, or something that creates one time links. Enforcefx, I’m not positive why you would want to do this. But since I plan to be a contributing member of this community, I did a little bit digging. This link carries a tutorial which I’m sure might fit the bill. It allows you password protect your blog post. http: //css-tricks. com/825-easily-password-protect-a-website-or-subdirectory/ This link also shows how you can redirect the visitor to your site to another page within your site, or to a completely external site. http: //www. webworkshop. net/auto-redirecting_methods. html You’ll have to allow us to in on why you intend to do this as there can be something you’re determined by that we are just not aware of. If you utilize a DB around the backend, you could develop a variable which is used in a new link, or the button link, or even email… pretty … Continue reading

Posted in Web Design | Tagged , , , , , , , , , | Leave a comment