| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Expert Join Date: Mar 2005 Location: LinksHut.com
Posts: 7,697
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | |
| |
| | #2 (permalink) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | .htaccess Code: # would redirect 'someimage.jpg', to 'someimage.html'
# just play around with it, or maybe someone will
# come up with a better way :)
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^google\.com$ [NC]
RewriteRule ^(.*)\.(jpg|jpeg|gif|png|bmp)$ /$1.html [L] |
| |
| | #3 (permalink) |
| You are here: X Join Date: Oct 2003 Location: US
Posts: 483
![]() ![]() ![]() ![]() ![]() | If your *NOT* running ads in an iframe (adsense), you can use javascript to break out of the google frame and leave your visitor at the thumbnail page. Code: if (window != top) top.location.href = location.href; Code: RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com/.*$ [NC]
RewriteRule \.(gif|jpg|png)$ http://www.example.com/thumbs.php?img=%{SCRIPT_FILENAME}% [R,L] |
| |
| | THREAD STARTER #4 (permalink) |
| NamePros Expert Join Date: Mar 2005 Location: LinksHut.com
Posts: 7,697
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thanks both of you for help. I guess I'll just use the frame breaking thingy because I still can't figure out anything about that .htaccess thing.
__________________ Social Bookmarking Service - 100 Bookmarks + BONUS for just $5 |
| |