Subscribe via email:

Welcome

Welcome!

Hey Everyone! Welcome @ Eien Cafe! This site is best viewed in Internet Explorer 8, 1024/768 or higher, Opera 11+ and Chrome 10+. I'm Laura the only owner and updater of this site. This is a personal site but there are some resources to help you with your graphic/website, feel free to look around but first read the Terms Of Usage, thank you and enjoy. Before you go, please grab a button to let everyone know about Eien Cafe. Back Home Contact Me!!

Link Out



See codes

My Personal Tweets

Follow

EC tweets

Follow

Categories

Stalk me!


DandyID Box.net COLOURlovers Delicious deviantART LiveJournal hi5 MySpace PostCrossing Twitter YouTube Xanga FanFiction Blogger Tumblr Twitpic TV.com Digg

Disclaimer

All original images used for graphic, layouts, avatars, etc. belong to their respective creators. I do not take credits for creating any of those images. Only the final work belong to me. No copyright infringement intended. Credits can be found here and here. If I forgot someone or something feel free to contact me.

cPanel: Stop Direct Linking with .htaccess

You’re tired of having your bandwidth stolen from stupid kids who don’t bother to read a simple rule? Here a code to prevent it.

Open up a text editor such as Note Pad and paste this code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?YOURDOMAIN.COM/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(gif|jpg|png)$ - [F]

Change YOURDOMAIN.COM to your domain, don’t write http:// it’s already written. Now save it as .htaccess (if you can’t save it like that on your computer, save it as a.htaccess). Using an FTP program upload it to your site and then change the name to only .htaceess.

Explanation: the first line begins the rewrite, the second allows direct link on your site, the third line allows empty referrals and the last is the one which prevents direct linking and displays a 403 Forbidden error code instead of an image. [NC] means ‘No Case’ so however your domain is typed (upper or lower case letters) it always works.

You’re done! If someone direct-links an image from your site, the image will be a red X on their site.

Leave a Note Leave a Note

First time commenter is held for approvation, please don't post twice ;) I will see your comment and then approve it. Sorry for the inconveniance, it helps prevent spam :P

:D :) :( :o 8) :eek: :lonely: ;-( :grin: :wink: :arrow: :idea: :?: :!: :evil: O:) :-| :-* :-(( :poke: :love: :tired: :emotion: :party: :clown: :worried: X( :p :amused: :bored: :cold: :glasses: :shifty: :high: :horny: :impatient: :indifferent: :loved: :needhug: :pensive: :relaxed: :silly: :smart:

Back to the Previous seen Page | Back Home | Contact Me!!

Copyright © 2007 - 2012 Laura @ EienCafe.Com. Please read the Terms Of Use.
Powered By Wordpress Valid XHTML 1.0 Transitional Creative Commons License