MyBB Community Forums

Full Version: HELP PLEASE! Forum gone wayward!!! PROBLEM SOLVED, but WHY???
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2010-03-21, 01:17 AM)Bob Jansen Wrote: [ -> ]
(2010-03-21, 01:11 AM)ijlal Wrote: [ -> ]
(2010-03-21, 12:53 AM)Bob Jansen Wrote: [ -> ]You are suppose to do it via the cPanel with the Hotlink option.

Well, that is how I did it!
Good job... Also next time please pick a more suitable title Angel.


Thanks Bob, and no hard feelings about the title; but please bear with me as I am quite green Blush My question remains unanswered and is creating a lot of confusion in my mind. I added hot link protection using cPanel; then why was it affecting the pics to be displayed? I thought it was meant to protect the pics to be linked to by other websites. What is the point of protecting the images if they will not be displayed? One might as well leave the images out if they will not be displayed, or is it that I did something wrong while using hotlinking?

Thanks,
Ijlal
This might be a bit unrelated, but in your index title, you have an unclosed ' '. Might wanna look into that. Toungue
(2010-03-21, 01:28 AM)ijlal Wrote: [ -> ]
(2010-03-21, 01:17 AM)Bob Jansen Wrote: [ -> ]
(2010-03-21, 01:11 AM)ijlal Wrote: [ -> ]
(2010-03-21, 12:53 AM)Bob Jansen Wrote: [ -> ]You are suppose to do it via the cPanel with the Hotlink option.

Well, that is how I did it!
Good job... Also next time please pick a more suitable title Angel.


Thanks Bob, and no hard feelings about the title; but please bear with me as I am quite green Blush My question remains unanswered and is creating a lot of confusion in my mind. I added hot link protection using cPanel; then why was it affecting the pics to be displayed? I thought it was meant to protect the pics to be linked to by other websites. What is the point of protecting the images if they will not be displayed? One might as well leave the images out if they will not be displayed, or is it that I did something wrong while using hotlinking?

Thanks,
Ijlal
You had setup the .htaccess file wrong and that's you forum did not work. The proper way of what you want to achieve is doing it via the cPanel in the Hotlink section and you did that so your set. Not sure what you want more, all I can say is that the .htaccess was causing the trouble and interfered with MyBB.
Sorry Bob, I had set it through cPanel tool and it was not working Now I have disabled it and it is working, i.e. showing images.

Thanks for your help, anyhow...

Regards,
Ijlal
Seems to work for me, contact you host.
(2010-03-20, 11:56 PM)ijlal Wrote: [ -> ]I had set up through cPanel that pics of the above types not be linked to

Well if you stopped them being linked to of course that'd break it as they're being linked to on the page, surely what you'd want to do is stop them being accessed directly??
(2010-03-21, 12:16 PM)MattRogowski Wrote: [ -> ]Well if you stopped them being linked to of course that'd break it as they're being linked to on the page, surely what you'd want to do is stop them being accessed directly??

My understanding of it was that it is supposed to stop then from being shown if they are linked to from a different domain. For example, if I were to put an image on my site and then someone else tried to use it here when I had hotlink protection on the image would not show. If it is being linked to from the same site, it is supposed to work. Also, most of the sites that I've run into that use this (successfully) you can view the images directly, but only if you're coming from a page on the site. Seems to me it basically doesn't allow anyone being referred externally to see the image. The code that was posted here seems to be the same as what mine creates and what I can find searching for it, except it is missing a vital detail - the one which specifies this is only to be used if it's not from a given domain.

If you want to turn this protection on, you should be able to use the same line you removed ( RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC] ) IF the line before it reads:
RewriteCond %{HTTP_REFERER} !^http://YOUR DOMAIN/.*$ [NC] (where "YOUR DOMAIN" is your domain, and an identical individual line for each subdomain) OR
RewriteCond %{HTTP_REFERER} !^http://(www\.)?YOURSITE\.(com) [nc]

OR here's the literal code that *should* work, if you really want this on (remove it again if you try and it doesn't work):
RewriteCond %{HTTP_REFERER} !^http://(www\.)?pakistanangler\.(com) [nc]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
(2010-03-21, 12:42 PM)ladyunicornejg Wrote: [ -> ]
(2010-03-21, 12:16 PM)MattRogowski Wrote: [ -> ]Well if you stopped them being linked to of course that'd break it as they're being linked to on the page, surely what you'd want to do is stop them being accessed directly??

My understanding of it was that it is supposed to stop then from being shown if they are linked to from a different domain. For example, if I were to put an image on my site and then someone else tried to use it here when I had hotlink protection on the image would not show. If it is being linked to from the same site, it is supposed to work. Also, most of the sites that I've run into that use this (successfully) you can view the images directly, but only if you're coming from a page on the site. Seems to me it basically doesn't allow anyone being referred externally to see the image. The code that was posted here seems to be the same as what mine creates and what I can find searching for it, except it is missing a vital detail - the one which specifies this is only to be used if it's not from a given domain.

If you want to turn this protection on, you should be able to use the same line you removed ( RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC] ) IF the line before it reads:
RewriteCond %{HTTP_REFERER} !^http://YOUR DOMAIN/.*$ [NC] (where "YOUR DOMAIN" is your domain, and an identical individual line for each subdomain) OR
RewriteCond %{HTTP_REFERER} !^http://(www\.)?YOURSITE\.(com) [nc]

OR here's the literal code that *should* work, if you really want this on (remove it again if you try and it doesn't work):
RewriteCond %{HTTP_REFERER} !^http://(www\.)?pakistanangler\.(com) [nc]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

Thanks ladyunicornejg for your suggestions. Yes there was more code like the one you have suggested. While I had included http://pakistanangler.com/ and http://www.pakistanangler.com/ in the list of exceptions in hot link protection tool within cPanel, I guess I should have included http://fishtalk.pakistanangler.com/ as it is a sub domain. I 'll try again and see.

Regards,
Ijlal
(2010-03-21, 05:05 PM)ijlal Wrote: [ -> ]Thanks ladyunicornejg for your suggestions. Yes there was more code like the one you have suggested. While I had included http://pakistanangler.com/ and http://www.pakistanangler.com/ in the list of exceptions in hot link protection tool within cPanel, I guess I should have included http://fishtalk.pakistanangler.com/ as it is a sub domain. I 'll try again and see.

Yep, forgetting that subdomain would have caused the problem (if the subdomain was protected). Good luck.
Pages: 1 2