Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Protect your site via htaccess" contribution


mmstoned

Recommended Posts

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

Link to comment
Share on other sites

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.

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

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...