Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: .htaccess Problems (Please help)  (Read 3781 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.019 seconds with 18 queries.