The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Stopping Remote Linking to uploaded Avtars?
How do I stop people from linking to user uploaded avatars? I would like to even throw an image the reads stolen, I know how to do it for files in a directory using .htaccess, but I do not know for the user uploaded avatars.
Thanks William |
#2
|
||||
|
||||
Xenon posted on how to do this in .htacess - do a search for it.
|
#3
|
|||
|
|||
<a href="https://vborg.vbsupport.ru/showthread.php?postid=384400#post384400" target="_blank">https://vborg.vbsupport.ru/showt...400#post384400</a>
That's what I found. Check a few posts below that too. I searched since I was interested in it as well...don't think I'll bother now though. |
#4
|
||||
|
||||
I searched on those and have looked at them, will those listed stop the linking to user uploaded being they are not .gif or jpg, but instead "https://vborg.vbsupport.ru/avatar.php?userid=4422&dateline="?
|
#5
|
||||
|
||||
any other suggestions???
|
#6
|
||||
|
||||
What's wrong with that code by Xenon? It should work.
|
#7
|
||||
|
||||
correct me if I am wrong but custom avatars and attachments are blobs in the DB, they are not stored on the file system. the .htaccess would only work if the images were on the file system, but how would that work for avatar.php which pulls the blob from the database and renders it.
|
#8
|
||||
|
||||
It prevents people from linking to the images in the database like this:
<img src="http://www.domain.com/avatar.php?userid=1"> |
#9
|
||||
|
||||
you are 90% correct, but it will not work if you just use the syntax in the above post, I had to add one more set with
"RewriteRule .*\.php$ - [G]" and now it works, I did not know I could stop phps like that. Live and Learn Thanks... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|