Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: .htaccess Problems (Please help)  (Read 3776 times)

0 Members and 1 Guest are viewing this topic.

epsilon

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
    • http://www.cremita.com
.htaccess Problems (Please help)
« on: December 10, 2003, 09:25:09 pm »

:? I test the .htaccess of the hotlink topic http://forum.coppermine-gallery.net/viewtopic.php?p=10541#10541 and of the stole topic http://forum.coppermine-gallery.net/index.php?topic=218&highlight=htaccess in my server, but when i put some of this htaccess in my /albums or in some gallery directorio /albums/xx/asd/ for example my thumbnails and images shows me a broken icon  :cry:

¿What im doing wrong? ¿What can be the problem? Please Help  :(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
.htaccess Problems (Please help)
« Reply #1 on: December 11, 2003, 04:07:35 am »

please post the full syntax of your .htaccess file.
Do not double post!

GauGau

P.S. this board usually deals with coppermine itself, not apache; there might be better places to look for help on this...
Logged

epsilon

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 95
    • http://www.cremita.com
More explicit...
« Reply #2 on: December 11, 2003, 09:18:02 am »

This is the content of my .htaccess to prevent hotlinking:

Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?cremita.com(/)?.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?www.cremita.com(/)?.*$     [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|tif|png)$ http://www.cremita.com/tvcream1.jpg [R,NC]


I tryed to use another .htaccess to prevent entire site downloads:

Code: [Select]
<Files .htaccess>
deny from all
</Files>
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*NEWT [OR]
RewriteCond %{HTTP_USER_AGENT} ^Crescent [OR]
RewriteCond %{HTTP_USER_AGENT} ^CherryPicker [OR]
RewriteCond %{HTTP_USER_AGENT} ^[Ww]eb[Bb]andit [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebEMailExtrac.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^NICErsPRO [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus.*Webster [OR]
RewriteCond %{HTTP_USER_AGENT} ^Microsoft.URL [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^LinkWalker [OR]
RewriteCond %{HTTP_USER_AGENT} ^sitecheck.internetseer.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^ia_archiver [OR]
RewriteCond %{HTTP_USER_AGENT} ^DIIbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^psbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailCollector
RewriteRule ^.* - [F]
RewriteCond %{HTTP_REFERER} ^http://www.cremita.com$
RewriteRule !^http://[^/.]\.cremita.com.* - [F]


And i have the same error in the two cases/options... (I dont see the photos in the gallery of the directory where the .htaccess is uploaded)

the phpinfo of my server is http://Http://www.cremita.com/phpinfo.php (adult site with xxx content)

Sorry for the double post.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.