[ABD] Prevent hotlinking

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

[ABD] Prevent hotlinking

Post by stokerpiller »

MOD title: Prevent hotlinking
MOD description: Here is a little addon for Your phpBB3 board that prevents hotlinking and people stealing Your bandwidth.
It affects all files that are uploaded with the "Upload attachment" function.
Uploaded Avatars, attached files and attached images are included
This way it only causes very little server load because it only checks files placed in the download folder.
But it is possible to protect everything :)

MOD version: 1.0.1
phpBB version: Tested on 3.0.0 - 3.0.4
Installation Time: 4 minutes
MOD Format: None at the moment
MOD download and demo: http://www.phpbb3bbcodes.com/prevent-ho ... -t431.html
Last edited by stokerpiller on Sun May 17, 2009 9:46 am, edited 3 times in total.
I am done with phpBB
tupeu
Registered User
Posts: 320
Joined: Wed Jul 25, 2007 5:47 pm
Location: roFLmania
Contact:

Re: [BETA] Prevent hotlinking

Post by tupeu »

this mod makes the avatars not show up anymore :roll:
and the atachments are messad up...
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [BETA] Prevent hotlinking

Post by stokerpiller »

tupeu wrote:this mod makes the avatars not show up anymore :roll:
and the atachments are messad up...
Did You follow the guide?
It sounds like You forgot to edit this line in the .htaccess file before You uploaded it to the download folder:

Code: Select all

RewriteCond %{HTTP_REFERER} !^http://(.+.)?yourdomain.com/ [NC]
Please replace yourdomain.com with the name of Your domain.

Did that solve the problem?
I am done with phpBB
tupeu
Registered User
Posts: 320
Joined: Wed Jul 25, 2007 5:47 pm
Location: roFLmania
Contact:

Re: [BETA] Prevent hotlinking

Post by tupeu »

stokerpiller wrote: Did You follow the guide?
It sounds like You forgot to edit this line in the .htaccess file before You uploaded it to the download folder:

Code: Select all

RewriteCond %{HTTP_REFERER} !^http://(.+.)?yourdomain.com/ [NC]
Please replace yourdomain.com with the name of Your domain.

Did that solve the problem?
unfortunately not !

the images atached to any topic and the atachments don`t work even if i delete the download folder and clear the cache, i just get the The requested document was not found on this server.
it goes to /download/file.php?id=123

my atachments are in the /files folder and your mod is in /download folder
that download folder has only 1 file, the .htaccess
the image file is in the root folder

why i don`t see the avatars even if i delete the download folder and all the files related to this mod?

and i use php 5.2.4
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [BETA] Prevent hotlinking

Post by stokerpiller »

I know that attachments are placed in the files folder, but they are shown as placed in the download folder.
Therefore the .htaccess file should be uploaded to the download folder as explained in the guide.

If You have uploaded it to the files folder, You have overwritten the .htaccess file that allready was there.
The .htaccess file in the files folder looks like this:

Code: Select all

<Files *>
	Order Allow,Deny
	Deny from All
</Files>
Please restore it.

Have You deleted Your entire download folder?

I will help You out if You write EXACTLY what You have done.
I am done with phpBB
tupeu
Registered User
Posts: 320
Joined: Wed Jul 25, 2007 5:47 pm
Location: roFLmania
Contact:

Re: [BETA] Prevent hotlinking

Post by tupeu »

lol, i think i found the problem...don`t ask :)
i moved my site to another host and forgot a file...

this was my mistake, sorry for the false alarm but i was desperate cause i have over hundreds of atachments and i though i will have to upload them again !
:roll:

thank you !


and most important:

Your MOD is working !
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [BETA] Prevent hotlinking

Post by stokerpiller »

Glad You figured it out :mrgreen:
I am done with phpBB
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Prevent hotlinking

Post by stokerpiller »

Still need people to test this.
I am done with phpBB
AMH99
Registered User
Posts: 5
Joined: Fri Apr 18, 2008 4:44 pm

Re: [RC] Prevent hotlinking

Post by AMH99 »

Does not work for me! :roll:

I have a board that was upgraded from the V2 board and all the files are in the /files/ directory. I am still being hotlinked.
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Prevent hotlinking

Post by stokerpiller »

AMH99 wrote:Does not work for me! :roll:

I have a board that was upgraded from the V2 board and all the files are in the /files/ directory. I am still being hotlinked.
Yes, phpBB3 puts the attachments in the files folder. But that doesn't matter, it works anyway because the link says the download folder :)

Can You post some of Your attachments her?
Both zip and with the Img BBCode.
I am done with phpBB
User avatar
Dr.Death
Registered User
Posts: 400
Joined: Fri Apr 25, 2003 10:04 am
Location: Germany
Contact:

Re: [RC] Prevent hotlinking

Post by Dr.Death »

Nice MOD.

Works fine.

Try to hotlink this image:

http://www.lpi-clan.de/viewtopic.php?f=3&t=3718
http://www.lpi-clan.de/download/file.php?id=142

Only phpbb.com , phpbb.de and lpi-clan.de are allowed to hotlink this image.
Doc.
AMH99
Registered User
Posts: 5
Joined: Fri Apr 18, 2008 4:44 pm

Re: [RC] Prevent hotlinking

Post by AMH99 »

bridge.net/forum/download.php?id=375

and

bridge.net/forum/download/file.php?id=2415
Last edited by AMH99 on Tue Aug 19, 2008 4:32 pm, edited 1 time in total.
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [RC] Prevent hotlinking

Post by stokerpiller »

Dr.Death -> Thanks for testing.

AMH99 -> I cant follow Your links. One gives a white page and one ask if I want to install phpBB?
So it looks like it is working except it should show the no hotlink image.
Did You upload it to the root of Your forum?
Have You edited the .htaccess file correct - can You post the content here.
I am done with phpBB
stokerpiller
Registered User
Posts: 1934
Joined: Wed Feb 28, 2007 8:06 pm

Re: [ABD] Prevent hotlinking

Post by stokerpiller »

Mod denied validation. No further development can be done.
Even though it works perfect, it is now abandonned.
I am done with phpBB
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [ABD] Prevent hotlinking

Post by RMcGirr83 »

stokerpiller wrote:Mod denied validation.
Why?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
Locked

Return to “[3.0.x] Abandoned MODs”