Hot linking
Old
  (#1)
Apophis
Guest
 
Posts: n/a
Default Hot linking - 05-14-2007, 01:25 AM

With the .htaccess file you can add

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


to prevent hotlinking.

Can you replace the gif, jpg, etc....in the line RewriteRule
\.(gif|jpg)$ - [F] with a wild card * ? Will this work or will it have
an adverse affect on the website?

Thank You

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Hot linking
Old
  (#2)
John Bokma
Guest
 
Posts: n/a
Default Re: Hot linking - 05-14-2007, 01:25 AM

"Apophis" <EMAIL REMOVED> wrote:

> With the .htaccess file you can add
>
> RewriteEngine on
> RewriteCond %{HTTP_REFERER} !^$
> RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
> RewriteRule \.(gif|jpg)$ - [F]
>
>
> to prevent hotlinking.
>
> Can you replace the gif, jpg, etc....in the line RewriteRule
> \.(gif|jpg)$ - [F] with a wild card * ? Will this work or will it have
> an adverse affect on the website?


Guess what happens when a visitors clicks a link on a site, and that link
goes to your site.

Some remarks:

!^http://(www\.)?mydomain.com/.*$


1) don't use mydomain for examples, use example.com (what's in a name)

..*$ means 0 or more characters until the end, this is the same as:

!^http://(www\.)?mydomain.com/

only less noise.


--
John Need help with SEO? Get started with a SEO report of your site:

--> http://johnbokma.com/websitedesign/seo-expert-help.html
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Hot linking
Old
  (#3)
Apophis
Guest
 
Posts: n/a
Default Re: Hot linking - 05-14-2007, 01:26 AM

Sorry for the confusion..my main question is this........

Can you replace the gif, jpg, etc....in the line
RewriteRule \.(gif|jpg)$ - [F]
with a wild card *

Will this work or will it have
an adverse affect on the website?




John Bokma wrote:
> "Apophis" <EMAIL REMOVED> wrote:
>
> > With the .htaccess file you can add
> >
> > RewriteEngine on
> > RewriteCond %{HTTP_REFERER} !^$
> > RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
> > RewriteRule \.(gif|jpg)$ - [F]
> >
> >
> > to prevent hotlinking.
> >
> > Can you replace the gif, jpg, etc....in the line RewriteRule
> > \.(gif|jpg)$ - [F] with a wild card * ? Will this work or will it have
> > an adverse affect on the website?

>
> Guess what happens when a visitors clicks a link on a site, and that link
> goes to your site.
>
> Some remarks:
>
> !^http://(www\.)?mydomain.com/.*$
>
>
> 1) don't use mydomain for examples, use example.com (what's in a name)
>
> .*$ means 0 or more characters until the end, this is the same as:
>
> !^http://(www\.)?mydomain.com/
>
> only less noise.
>
>
> --
> John Need help with SEO? Get started with a SEO report of your site:
>
> --> http://johnbokma.com/websitedesign/seo-expert-help.html


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Hot linking
Old
  (#4)
John Bokma
Guest
 
Posts: n/a
Default Re: Hot linking - 05-14-2007, 01:26 AM

"Apophis" <EMAIL REMOVED> wrote:

> Sorry for the confusion..


Maybe you should start reading top down instead of the other way around?
Seems to work better with English.

> my main question is this........
>
> Can you replace the gif, jpg, etc....in the line
> RewriteRule \.(gif|jpg)$ - [F]
> with a wild card *


Sure, be my guest.

> Will this work or will it have
> an adverse affect on the website?


Rethorically answered below:

But for starters read first:
http://johnbokma.com/mexit/2006/04/11/how-to-reply.html


> John Bokma wrote:
>> "Apophis" <EMAIL REMOVED> wrote:
>>
>> > With the .htaccess file you can add
>> >
>> > RewriteEngine on
>> > RewriteCond %{HTTP_REFERER} !^$
>> > RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
>> > RewriteRule \.(gif|jpg)$ - [F]
>> >
>> >
>> > to prevent hotlinking.
>> >
>> > Can you replace the gif, jpg, etc....in the line RewriteRule
>> > \.(gif|jpg)$ - [F] with a wild card * ? Will this work or will it
>> > have an adverse affect on the website?

>>
>> Guess what happens when a visitors clicks a link on a site, and that
>> link goes to your site.
>>
>> Some remarks:
>>
>> !^http://(www\.)?mydomain.com/.*$
>>
>>
>> 1) don't use mydomain for examples, use example.com (what's in a
>> name)
>>
>> .*$ means 0 or more characters until the end, this is the same as:
>>
>> !^http://(www\.)?mydomain.com/
>>
>> only less noise.


Don't qoute sigs.

--
John Need help with SEO? Get started with a SEO report of your site:

--> http://johnbokma.com/websitedesign/seo-expert-help.html
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top