[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

Hotlinking

I have written something that stop's hotlinking.  I've seen similar code working on the internet, and it's working from localhost.  I have tried to upload it to my server and it's not working.

I have changed it to not allow anything (i'll change it later to the checking once it get this working)

<system.web>
<httpHandlers>
<add verb="*" path="*.jpg" type="System.Web.HttpForbiddenHandler" />
</httpHandlers>
</system.web>

This is in the web.config and it's not even being called.   I have contacted my hosting provider (godaddy) but i may aswell of been talking to a brick wall because they are refusing to give any sort of answer.

"Unfortunately, we are very limited in the support we can offer for customer-written code or scripts such as this. If there is evidence that our system is responsible for the error, please forward it to us, and we would be happy to look into the matter further. But at the moment this does not appear to be the case, so we regret we can not assist you further with this issue. We apologize for any inconvenience this may cause."

"As stated this is possible on our shared windows hosting accounts but we can not assist with the setup or execution of this file as it is considered custom scripting and setup. Thank you for your time."


Any ideas?
0
UnexplainedWays
Asked:
UnexplainedWays
3 Solutions
 
UnexplainedWaysAuthor Commented:
"If there is evidence that our system is responsible for the error"

It seems to work everywhere else and not your server, isn't that some form of evidence?
0
 
deepaknetCommented:
You actually need to check for the HttpReferrer.

http://www.dotnet247.com/247reference/msgs/48/241882.aspx
0
 
esdxr26Commented:
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
UnexplainedWaysAuthor Commented:
"IIS Configuration"

That might be my problem.  I dont have direct access to the macheine so i can't get into the properties like that.  

The example is pretty mucht he saem except i used <add verb="*" path="*.jpg" where they used <add name=
0
 
PioNieR_SVKCommented:
if u have your hosting at apache server and u can us .htacces file u can block it here
0
 
UnexplainedWaysAuthor Commented:
I think apache is a linux server? (think not completly sure) and i'm runnign a windows asp.net one.
0
 
UnexplainedWaysAuthor Commented:
Still can't get it to work, bugga.  Thans for the help though.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now