njaohnt Posted March 17, 2012 Share Posted March 17, 2012 When I try to make a new hotlink allowed URL, it says "There was an error while enabling hotlink protection. Show Details"Show Details shows "Error: while opening /.htaccess" Link to comment Share on other sites More sharing options...
Byron Posted March 17, 2012 Share Posted March 17, 2012 Are you trying to enable hotlink protection on your whole site? Link to comment Share on other sites More sharing options...
njaohnt Posted March 18, 2012 Author Share Posted March 18, 2012 Yes. Link to comment Share on other sites More sharing options...
Byron Posted March 18, 2012 Share Posted March 18, 2012 Can you post for me what's in your root htaccess file? Link to comment Share on other sites More sharing options...
njaohnt Posted March 19, 2012 Author Share Posted March 19, 2012 I can't get to it.I typed in the search on file manager "htaccess" and the first file was /public_html/.htaccess and when I click on that, it shows the public_html file, and I can't find the .htaccess in there. Link to comment Share on other sites More sharing options...
Byron Posted March 19, 2012 Share Posted March 19, 2012 /public_html/.htaccess is the file I'm referring too. Can you see what's in that file? Link to comment Share on other sites More sharing options...
njaohnt Posted March 21, 2012 Author Share Posted March 21, 2012 No, .htaccess is not in my public_html Link to comment Share on other sites More sharing options...
Byron Posted March 21, 2012 Share Posted March 21, 2012 This link should take you to your .htaccess file. You'll need to login. http://stevie.heliohost.org:2082/frontend/x3/files/file.html?dir=%2fhome1%2fnjaohnt%2fpublic_html&file=.htaccess Click "Show File" to see what's in it. Link to comment Share on other sites More sharing options...
njaohnt Posted March 23, 2012 Author Share Posted March 23, 2012 RewriteEngine on# -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST>order deny,allowdeny from allallow from all</Limit><Limit PUT DELETE>order deny,allowdeny from all</Limit>AuthName jzdb.heliohost.orgAuthUserFile /home1/njaohnt/public_html/_vti_pvt/service.pwdAuthGroupFile /home1/njaohnt/public_html/_vti_pvt/service.grp RewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://www.tset.jzdb.heliohost.org/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.tset.jzdb.heliohost.org$ [NC]RewriteCond %{HTTP_REFERER} !^http://tset.jzdb.heliohost.org/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://tset.jzdb.heliohost.org$ [NC]RewriteCond %{HTTP_REFERER} !^http://adv.j-z-d.tk/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://adv.j-z-d.tk$ [NC]RewriteCond %{HTTP_REFERER} !^http://j-z-d.tk/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://j-z-d.tk$ [NC]RewriteCond %{HTTP_REFERER} !^http://jz.jzdb.heliohost.org/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://jz.jzdb.heliohost.org$ [NC]RewriteCond %{HTTP_REFERER} !^http://jzauctions.jzdb.heliohost.org/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://jzauctions.jzdb.heliohost.org$ [NC]RewriteCond %{HTTP_REFERER} !^http://jzdb.heliohost.org/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://jzdb.heliohost.org$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.adv.j-z-d.tk/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.adv.j-z-d.tk$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.j-z-d.tk/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.j-z-d.tk$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.jz.jzdb.heliohost.org/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.jz.jzdb.heliohost.org$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.jzauctions.jzdb.heliohost.org/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.jzauctions.jzdb.heliohost.org$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.jzdb.heliohost.org/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://www.jzdb.heliohost.org$ [NC]RewriteRule .*\.(jpg|jpeg|gif|png|bmp|htm|html|css)$ http://jzdb.heliohost.org/hotlinkblock.htm [R,NC] Link to comment Share on other sites More sharing options...
Byron Posted March 23, 2012 Share Posted March 23, 2012 Looks like your set for hotlink protection, although this line should only be image extensions: RewriteRule .*\.(jpg|jpeg|gif|png|bmp|htm|html|css)$ Something like: RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ Link to comment Share on other sites More sharing options...
njaohnt Posted March 23, 2012 Author Share Posted March 23, 2012 Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts