mmstoned Posted January 4, 2009 Share Posted January 4, 2009 I realize this question is probably very elementary but I'm rather new at most of this. I want to instal the "Protect your site via htaccess" contribution. Do I just copy the code that I want from the provided html file and paste it into the existing .htaccess file in my root catalog? I did read that I need to change the text in red to suite my site. It just seems too easy. Also is there a way to test it and see if it is working properly? Thanks in advance for any and all help! Jeff Quote Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted January 4, 2009 Share Posted January 4, 2009 Yes. Change the text in red to suit your site. Follow the rest of the installation instruction and then try it. If your subject is accurate then if you can get in to the directory/site it does not work, if you can't it does. Do hope you backed up your original .htaccess file before you started. Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
mmstoned Posted January 4, 2009 Author Share Posted January 4, 2009 I tried to use this .. when I linked to an imges I got the missing image incon not the stolen.gif that I uploaded. # stop hotlinking (gif/jpg) and serve alternate content I have included an image for you to upload, please note if you use your images out side of your server (like linked into EBAY) you cannot use this. <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?simple-wifi\.com/.*$ [NC] RewriteRule .*\.(gif|jpg)$ http://www.simple-wifi.com/images/stolen.gif [R,NC,L] </ifModule> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.