WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
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 Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
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
Submit Site
Forex Trading Online forex trading platform

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 3 times)
Viewed : 3792
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 
 

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
MD5 secured login
Categories : PHP, Java Script, Authentication, Security
Password Creator: This PHP code exmaple shows how to use bitwise operations on a single variable and using it as a flagged variable. The class generates passwords of a given length using specified characters and the flags.
Categories : PHP, PHP Classes, Algorithms, Security
Simple Password example
Categories : PHP, Authentication, Security, HTTP
PHP Function to Encrypt/Decrypt a string without a known key. The string itself has his own different key for every character.
Categories : PHP, Algorithms, Security, Authentication, Encryption
A PHP function to encrypt and decrypt a number or string or a combination of the two.
Categories : PHP, Encryption, Security
UDMSearch - a free search engine, indexing system.
Categories : Search Engines, Linux, PHP, MySQL, ODBC
Encoding data using PGP via PHP's proc_* functions
Categories : Cryptography, Security, Email, PHP, PGP
A very simple PHP single password cookie based login without usernames.
Categories : PHP, Cookies, Security, Beginner Guides
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
Secure URL $_GET
Categories : PHP, Data Validation, Security
Open and Close your website in fixed times .
Categories : PHP, PHP Classes, Cron, Date Time
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
Distribute PHP Software Protected by a License Key.
Categories : PHP, Cryptography, Security, Software