Hotlinking (url Rewrite)
Aug 15, 2008
I'm facing some issues with hotlinking here. the htaccess do not work because users can still use their download manager to download the file without going to my site.
I've seen few sites that got tempoary url that changes every X times and that support download manager.
View 4 Replies
ADVERTISEMENT
Jul 24, 2008
I dowload a scripts with a .htaccess file
Code:
DirectoryIndex index.php
RewriteEngine On
RewriteRule ^link/([0-9]+)[/]*$ /redirect.php?id=$1
RewriteRule ^link/([a-zA-Z0-9]+)[/]*$ /redirect.php?tag=$1
I want to convert it to lighttpd rewrite rules, urgent, also I can't contact with the scripts author,
View 0 Replies
View Related
May 15, 2007
I've tried a couple of different apps and solutions re hotlinking and IIS w/out finding a real winner. Hoping folks may have some recommendations re apps and/or solutions for dealing w/ hotlinking and IIS 6.
View 0 Replies
View Related
Apr 25, 2005
I am using godaddy hosting, but there is a problem - godaddy allows picture hotlinking by default. So i am loosing a lot of bandwidth.
How can i block this? I have never used .htaccess and don't know how to do it.
View 8 Replies
View Related
Nov 8, 2009
I have found some spammer hotlinking to my images to get his site crawled, I have modified the .htaccess to attempt and serve his hotlinking domain with a warning but it does not work...
My actual .htaccess file is the one below (it was created by wordpress automatically):
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I am adding these lines right below:
--------------------------------
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(.+.)?spammerdomain.com/ [NC,OR]
RewriteRule .*.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L]
------------------------------------
My questions...
I dont kmow too much what I am doing, following the tutorial here, http://altlab.com/htaccess_tutorial.html but the problem is that my .htacces already contains something created by wordpress that to me looks like garbage as I don't understand the meaning.
I dont know if I should add the lines inside the <IfModule mod_write.c> or outside them as I have done.
I dont know if it is ok to have two times Rewrite Engine On
PS: When I added the lines I describe above, my site also stopped displaying the images, I had stopped everyone including myself from hotlinking them. I only want to stop certain domain. or even better, my ideal solution is to WHITELIST my domain names (I have two using hotlinkg to those images), but I will settle for blacklist if it is easier.
View 9 Replies
View Related
May 15, 2009
I am looking for a content delivery network that will only serve files to a list of allowed hosts. This is such a basic "doh" feature, but nobody seems to have it (Mosso CloudFiles doesn't have it, and even Amazon S3 has no easy-to-use hotlink protection). Has anyone found such a CDN?
View 10 Replies
View Related
Jul 19, 2009
Is there a way to stop hotlinking? I have a client who has a blog. They have post pics of tattoos. Now there are at least 50 tattoo forums, blogs and other sites hotling to the pics. Now his bandwidth usage has skyrocketed. So enable hotlink protection in his cPanel. Just did a redirect to my main hosting site with a nice please stop hotlink image. Now I see all this in my logs. So I then made a 150 x 9000 clear BG gf with the text at the top please stop hotlinking.
My questions is there any way to stop it. If not should I just make a 1x1 clear gif to redirect to? Also is there a way to not have this traffic show in my log files?
View 4 Replies
View Related
Aug 5, 2007
I moved my website from one server to another just today and my site has a rank on another website. The ranking site lets me display my rank on my website through a hotlink to their site. When I moved my site to the new server, I can't see the image. On the old server, I could always see the image.
This is a strange issue since in Firefox, I see the image load and then it tells me the image is empty. But when I open the image's URL, I can see it just fine. I've reloaded the page over and over again, but I don't get anything. The same applies to IE.
What's even more strange is when I use a proxy, I can see the image just fine through my browser.
View 4 Replies
View Related
Feb 15, 2009
I am a graphic designer/photographer who creates designs for music artists, producers etc. on Myspace (I know, I know). This obviously involves lots of hotlinking, and that is why I am here.
I provide customers with hosting for their layouts so that they don't have to go out and search for one. I am currently hosting the images on a friends private server, but it's fairly slow and I want something more reliable. One layout usually has around 20 different images (background, headers, banners, etc) and I try to make sure it comes out to a little under 1MB, so I don't need to worry that much about disk space. I'd say bandwidth might be the only issue if anything.
I enjoy the work but it's mostly a side business and doesn't create much revenue, so I'm trying to go for around or under $10 a month. That said, I also want to make sure things are fast enough for the visitors and am willing to up the budget if required. I was going to go with 1and1 or Hostgator but heard alot about overselling.
View 12 Replies
View Related
Jun 24, 2008
I have a lot of movie clips on my server i think gets hotlinked. Does anyone knows of a good anti hotlinking movie script?
View 4 Replies
View Related
Sep 15, 2007
The images I am trying to block are on page generated by a simple PHP script on my server. The offender has replicated what I am doing with ASP on their server. They are hotlinking to my images for the resulting page. They left my website's name on them, so they must think that giving credit is enough.
I'm going to be contacting them to stop but I also want to see if there is a way for me to prevent it from happening in the first place.
I tried mod_rewrite...
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^[url].*$ [NC]
RewriteRule .(gif|jpg)$ - [F]
I know mod_rewrite works on my server because I've been using it for some other things.
However, whenever I enable the above code (add it to the directives and restart apache - have also tried just putting it in a .htaccess file in the appropriate directory), I end up with images still being allowed on my domain and the other domain I'm trying to stop from using my images. Do you think it could have to do with an absent referrer? I read that the code doesn't work if the referrer is blank. What else would cause this not to work? Obviously the domain would have to be correct, but it doesn't block from my domain OR the offending domain.
I tried another method:
Code:
<FilesMatch ".(gif¦jpg¦png)$">
SetEnvIfNoCase Referer ^$ allow_image
SetEnvIfNoCase Referer ^[url] allow_image
Order Deny,Allow
Deny from all
Allow from env=allow_image
</FilesMatch>
This one blocked images to the offending domain, but it also blocked mine!
View 3 Replies
View Related
Jan 6, 2007
I have came across site in my statistics that apperantly runs with about 99% of my content flash files. He put adsense all around them, too - sneaky.
I know it is possible to disable hotlinking from other sites using htaccess, but is it possible to disable hotlinking for ONE site? I need to block .swf that come from example.com domain.
View 0 Replies
View Related
May 5, 2008
im currently looking for a mod that can cloak the real url adress to prevent hotlinking and havetempoary links which expires after x min and a new linkupdates
View 2 Replies
View Related
Oct 27, 2007
I want a user to type myUrl.com/JohnSmith and go to John Smith's homepage. His homepage is actually a dynamic page that is shared with all users which is myUrl.com/Shared.aspx?ID=1234. I have created a URL rewrite script which finds the folder specified (JohnSmith) and finds the user ID from the database. It then displays the Shared.aspx page for the proper ID.
This works on my local machine because it's using Visual Web Developer as the hosting engine so it executes ASP.NET for every page load. When I upload this to an online host using IIS it fails because there is no folder named JohnSmith. I get a 404 online where I would get the proper page on my machine.
I have tried to work with 3 hosts to make this happen and noone can get this to work. I really need to either know what to tell the host to change or find someone who knows how to do this. I am obviously willing to change hosts if that's what it takes.
View 5 Replies
View Related
Feb 27, 2008
I'm wanting to make it so everytime someone goes to a link starting with:
www.sample.com/~
it rewrites it to this:
sample.com/~
How do I do this?
View 3 Replies
View Related
May 4, 2009
how I can use mod-rewrite with lighttpd.
Actually I am going to use phpprobid system and it has in built function for mod rewrite but I think it is for apache as if i turn it on I cant access pages
View 1 Replies
View Related
Mar 30, 2009
How I can convert the following into lighttpd rewrite?
RewriteCond %{REQUEST_FILENAME}
View 4 Replies
View Related
Mar 25, 2007
i had following rewrite (for wordpress multi user ) and it was working with lighttpd 1.4.x but i dont know its not working in 1.5
Quote:
$HTTP["host"] == "blogs.domain.com" {
url.redirect = ("^/(.*)" => "http://%1/$1")
url.rewrite-once = ("^/(.*)?/?files/(.*)" =>
"wp-content/blogs.php?file=$2", "^/(wp-.*)$" => "$1",
"^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2", "^/([_0-9a-zA-Z-]+/)?(.*.php)$" => "$2", "." => "index.php")
}
and its showing following error
Quote:
mod_rewrite.c.293: (error) url.rewrite contains a regex for '/' which
leads to a URI without a leading slash: index.php
View 1 Replies
View Related
Feb 14, 2007
I have few subdomains pointing to a directory (using dedicated ip an A record)
I need the following rewrite rules:
[url]--> [url]
[url]--> [url]
[url]--> [url]
How can I do this?
View 3 Replies
View Related
Apr 15, 2007
How do I set up rewrite on lighttpd?
View 1 Replies
View Related
Dec 23, 2007
to accomplish:
[url] ==> [url] however it should be proxied so that the user never sees [url]
This is because the sub domain is using apache while www is using lighttpd and I want to keep the entire site with www to the user.
View 3 Replies
View Related
Dec 24, 2007
I would like to use Lighttpd to rewrite and proxy as in this example:
1) There is no [url]download on server.
2) [url] => proxy => Apache 2.2 on same server to [url]
3) *.php should be handled by Lighttpd, however, the reason I want *.php5 to be done by Apache is due to compatibility issues.
proxy.server = ( ".php5" =>
( "localhost" =>
(
"host" => "XXX.XXX.XXX.XXX",
"port" => 81
)
)
)
The reason is because I don't want people to see .php5 file
Does this work using url.rewrite? If so how to do it?
I already have the following in lighttpd.conf, should the url.rewrite be placed in side of this?
$HTTP["host"] =~ "^domain.com$" {
url.redirect = ( "^/(.*)" => [url])
}
View 0 Replies
View Related
Aug 7, 2007
I have to write Rewrite rule at .htaccess file
[url]
goes to
[url]
View 3 Replies
View Related
Dec 26, 2007
I have one script I need rewritten in Lighttpd
Code:
http://www.domain.com/vscript.php?key=a4d1f0dd65dda29c04b1 =>
http://www.domain.com/v/a4d1f0dd65dda29c04b1
I tried the following but failed:
url.rewrite=("/v/[^/]*)" => "/vscript.php?key=$1")
View 2 Replies
View Related
Jul 9, 2007
How to rewrite a url for example. I purchased ssl for example.com and when i take [url], it gives ssl domain mismatch error.
ie i want to rewrite
[url]
View 1 Replies
View Related
Mar 14, 2007
When someone types in myforum.com/forums.html I want it to display the main forum (myforum.com) with ...../forums.html in the url bar. But without actually having a forums.html file present on the server. Can this be accomplished with htaccess?
View 2 Replies
View Related
Apr 25, 2013
how can i url rewrite, i tried to myself but failed miserably!.host.com/movie.php?id=123, 123 being any number!to: host.com/movie/123
View 3 Replies
View Related
Dec 22, 2007
I just purchased geoip and I want to use it to cloak my file mirrors:
I think it can be done using htaccess and url rewriting but I'm not sure how.
if ($country == "UK")
http://www.server.com/images/*.jpg => retrieve .jpg from current location on http://www.server.com/images/*.jpg
If ($country != "UK"}
http://www.server.com/images/*.jpg => http://www.server2.com/images/*.jpg
However, I don't want people to ever see http://www.server2.com/images/*.jpg being retrieved from www.server2.com.
So I want to cloak/hide the domain name in case 2.
View 2 Replies
View Related
Jun 4, 2009
I'd like to use lighttpd on my server but it doesn't support url rewrites for wordpress. I have a VPS running on kloxo and i have 4 clients using WP2.71 with permalinks.
After searching i found something really nice:
"
Create a file called /etc/lighttpd/wp-rewrite.conf with the following contents:
url.rewrite-once = (
"^" + wpdir + "(wp-.+).*/?" => "$0",
"^" + wpdir + "(sitemap.xml)" => "$0",
"^" + wpdir + "(xmlrpc.php)" => "$0",
"^" + wpdir + "keyword/([A-Za-z_0-9-])/?$" => wpdir + "index.php?keyword=$1",
"^" + wpdir + "(.+)/?$" => wpdir + "index.php/$1"
)
Then, in your /etc/lighttpd/lighttpd.conf, you should have something similar to this:
$HTTP["host"] =~ "blog.nix.is" {
var.wpdir = "/"
include "wp-rewrite.conf"
}
"
source: [url]
what i want to change is this part:
$HTTP["host"] =~ "blog.nix.is" {
var.wpdir = "/"
include "wp-rewrite.conf"
}
View 1 Replies
View Related
Jun 26, 2009
Where do I enable mod rewrite in webmin? my wordpress permalinks doesn't seem to work with pretty links
View 5 Replies
View Related
Jun 5, 2009
I'm not even really sure if rewrite is what I need, but basically I have an alias/proxy setup on apache which points mysite.com/itunes/ to mysite2.com/pr/itunes/. My script php executes on the second server, so it assumes that the address should be mysite.com/pr/itunes/. I need to rewrite this to mysite.com/itunes. Here's my code:
RewriteEngine on
RewriteBase /
RewriteRule ^itunes/(.*).php$ pr/itunes/(.*).php
View 0 Replies
View Related