WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Easily Grant Temporary SSH Access to yourself when in remote location
Categories : PHP, Linux, Cron, Security Click here to Update Your Picture
James Salinas
Date : Feb 16th 2005
Grade : 2 of 5 (graded 4 times)
Viewed : 7055
File : 4079.zip
Images : No Images for this code example.
Search : More code by James Salinas
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

Grant temporary shell access to yourself when away from home or on dialup.

An easy way to give yourself temporary ssh access to your linux server from a remote location without having to modify your /etc/hosts.allow file to grant access and then again to remove access.

Also an easy way to give shell access to a dialup hostee without having to specify ALL of their ISP's dialup IP ranges.

These files are:
- index.php
a simple webpage that records your IP into a file that is
saved outside of your document_root folder, and is read by
the dipSCR script amd appended to your hosts.allow file, thus
giving you access from that remote location.
This file should be put in an obscurely named folder protected
by htaccess ( username/password )
- dipRUN
a cron job that executes the dipSCR script every 5 minutes
- dipSCR
a script that reads your remote IP ( after you load up index.php )
and appends that IP to your hosts.allow file for 5 minutes.

Check the README.txt file in the archive for some basic instructions on installation and use.

Requires:
CGI PHP
CRON

Recommended:
securely named ( and not advertised ) web accessible folder protected by htaccess



A damaged image generator (class) for validating text. CAPTCHA - Completely Automated Public Turing test to tell Computers and Humans Apart
Categories : PHP, PHP Classes, Security, GD image library, Security
Function to generate readable/remeberable random password
Categories : PHP, Security, Security
MD5 secured login
Categories : PHP, Java Script, Authentication, Security
SHA: Implementation of the Secure Hash Algorithm in pure PHP. This is a secure one-way function that can be used to perform challenge response login algorithms over an insecure connection.
Categories : Algorithms, PHP, Security
A simple PHP login script that you can modify to suite your needs. It use a session to store data in a session file submited by the page.
Categories : PHP, Sessions, Security, Authentication
ElfReader: An ELF (Executable and Linking Format) header information in PHP. Shows how to use the UNPACK function to read data.
Categories : PHP, Linux, PHP Classes
Simple Password example
Categories : PHP, Authentication, Security, HTTP
Query2Report : Generating Html, Pdf and Csv Reports from SQL Query
Categories : PHP, PHP, HTML, PDF, Excel
PHPBrowser - browsing linux file systems.
Categories : PHP, Linux, Filesystem
Scramble Eggs - php class to scramble/encode
Categories : PHP, PHP Classes, Security, Encryption
Antispoof - a class to help prevent people hi-jacking and misusing parts of a website
Categories : PHP, PHP Classes, Security
Process killer for *nix
Categories : PHP, CGI, Shell Scripting, Linux
A captcha image allows you to prevent spam posting when users reload the page and stop bots from submitting forms automatically. This version allows you to use your own fonts (.ttf) to show the text.
Categories : PHP, Security, Graphics, GD image library
A few functions to create random passwords.
Categories : PHP, Security, Strings
session out Timer
Categories : PHP, Sessions, Security, Beginner Guides