Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Programming > PHP Development
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09-16-2005, 03:56 AM   #1 (permalink)
allon
Senior Member
 
Join Date: Sep 2005
Posts: 104
Default Stop leeching

Is there such a script in php that I can prevent leeching of files or images?
or at least mask the movie or swf file link.

Thanks
allon is offline   Reply With Quote
Sponsored Links
Old 09-16-2005, 04:35 AM   #2 (permalink)
augustine
Senior Member
 
Join Date: Sep 2005
Posts: 128
Default

Maybe you can direct every single request someone makes to a .htaccess file which in turns send it to be processed by a php file and if a certain set of rules are correct, it bans the loading....

I am not a pro but sounds logical
augustine is offline   Reply With Quote
Old 09-17-2005, 07:36 AM   #3 (permalink)
cornelis
Member
 
Join Date: Sep 2005
Posts: 62
Default

Something like this

Quote:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.mydomain.com/nasty.gif [R,L]
cornelis is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 09:11 AM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums