Hotlink prevent unauthorized URL using your images

Sunday, July 31, 2011

Hotlink prevent unauthorized URLs from loading files within specified directories at your site, which uses your bandwidth (also called bandwidth theft and leeching).
Example: Other website using your website image URL to show image on their website.

You can avoid that by creating .htaccess code.


Code:
# Begin hotlink protection #
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://domainallow1.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domainallow2.com/.*$ [NC]
RewriteRule .(gif|jpg|png)$ http://www.image.com/test.gif[R]
# End hotlink protection #


Create htaccess file and upload this .htaccess file to directory where your website files are located.

Here htacces code (hotlink protection) will allow domain 'domainallow1.com' and 'domainallow2.com' to access your website images.

RewriteRule .(gif|jpg|png)$ http://www.image.com/ [R] , it will restrict any other domains rather than  'domainallow1.com' and 'domainallow2.com'  to access your website  image and it will directly point to http://www.image.com/test.gif (you need to create this link) .

Here files are 'gif', 'jpg' and 'png'. You need to make changes in this line RewriteRule .(gif|jpg|png) .

Applicable to iPage, fatcow, Bizland, Ipower, Readyhosting, Startlogic (*only UNIX server).

Fatal error: require_once() [function.require]: Failed opening required ‘clsdataaccess.php’

Friday, July 29, 2011

Fatal error: require_once() [function.require]: Failed opening required ‘clsdataaccess.php’

(include_path=’.:/usr/local/lib/php-5.2.12/lib/php’) in /hermes/path/web135/somebuketno/accountname/class/clsprojects.php on

line 3 Reason:

The script at line 3 of the file ‘clsprojects.php’ is trying to call the file ‘clsdataaccess.php’, but there is no file in the directory.

Fix : If you see the error “failed to open stream: No such file or directory”, then the particular file in the account is missing or it is uploaded to the incorrect directory. You can fix this issue by moving the file to the correct location or uploading it to the proper location. If the file is uploaded to a different directory, you can also correct this issue by correcting the path in the PHP file.

How to hide your website source code?

Use this java script to hide your website source code, this script will work best if you placed within the head tags of the html.

<SCRIPT language=JavaScript><!-- http://www.way2learning.net --> var message = "function disabled by owner"; function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){ alert(message); return false; } if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { alert(message); return false; } } document.onmousedown = rtclickcheck;</SCRIPT>
 

Most Reading

Sidebar One

+1-800-574-0902 +44-20-7993-2673 (ID: 173296)