|
Tutorial covering the basics
You can now protect your
A short tip and some code on
Mcrypt is a wonderful set of
of encryption and how to
admin panel with an easier
how to handle getting rid of
library functions for
apply it to user validation,
code! This time instead of
register_globals in your
encrypting, decrypting, and
including a sample script to
annoying forms, you can make
application.
hashing data.
try out.
the browser ask for the
password.
Date: Aug, 05 2003 Date: Jun, 05 2005 Date: Mar, 14 2006 Date: Feb, 11 2006 |
|
Hotlinking is when another
This tutorial explains how to
using this code
Md5 is a very easy way to
website links directly to
safely hide away PDF files
andexplanation you can make
encrypt any string data.
one or more of your images
from public access using
you very own personalized
Following example take and
or multimedia files and
htaccess, but then having a
login script for any website.
encrypts a string. Remember
includes it on their web
PHP file run its own
that you could not dencrypt
page. Not only is this theft
authorization to allow
any data after encryption. .
of your intellectual
access to the file without
property, but further more,
the Network Password dialog
you are paying for the
box. The PDF file will be
bandwidth used by that site.
displayed in the browser (if
Which can result in a
the user has acrobat reader)
problem with your
or promoted to download the
budget.<BR /><BR
pdf file if the user doesn't
/>
The most common
have acrobat reader. This is
way to prevent others from
perfect for when you want to
hotlinking your content is
restrict PDF files to
Apache's mod_rewrite. While
authorized eyes only. This
this a solution that free
simple to use tutorial will
available to use, there are
have you up and running in a
a couple drawbacks. One
few minutes, one page of
being, that Apache has to be
info with full source code,
configured to use
and working examples.
mod_rewrite
(--enable-rewrite). Another
one being, that for a lot of
people writing regular
expressions is not the most
easiest thing to do.<BR
/><BR />
Of
course there are commercial
solutions to the problem.
Probably the most common one
is cPanel. An administration
interface for webserver,
which let's you create all
the necessary items for your
hotlink protection with a
matter of clicks, in a
matter of seconds.
Date: Jan, 04 2007 Date: Dec, 13 2001 Date: May, 02 2006 Date: Sep, 12 2006 |