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
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
Mobile Dev World

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 : 5735
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
Encoding data using PGP via PHP's proc_* functions
Categories : Cryptography, Security, Email, PHP, PGP
Passgen: Automatically generate mixed case alpha numeric passwords
Categories : PHP, Security
Creates a CAPTCHA image in PHP, which displays 5 numbers stored in a session.
Categories : PHP, GD image library, Form Processing, Security
Dollar Serial Number Validator
Categories : PHP, Security, Algorithms
Authenticator for Exchange Server LDAP
Categories : PHP, Authentication, LDAP, Security, Sessions
UDMSearch - a free search engine, indexing system.
Categories : Search Engines, Linux, PHP, MySQL, ODBC
send_mail function to defeat Header Injection Hacking/Spamming
Categories : PHP, Email, Form Processing, Security
Add a linux user from php
Categories : Linux, PHP
Random Password Generator
Categories : PHP, Strings, Security
A very simple PHP single password cookie based login without usernames.
Categories : PHP, Cookies, Security, Beginner Guides
Generating and Matching Secure and Strong Password Hash
Categories : PHP, PHP Classes, Cryptography, Security
IPTables Bandwidth statics
Categories : PHP, Security, Network
Use of bitmasks to represent permissions
Categories : PHP, Authentication, Bitwise Operators, Security, PHP Classes
phpSecurePages is a PHP module to secures pages with a loginname and password. It handles multiple user groups (each has own viewing rights), store data in a MySQL database or a configuration file, and can be used to identify Web site viewers.
Categories : PHP, Security, Authentication