![]() |
IMG and URL security
This is a so called "hack". I wanted that my users with IE web browser don't get "IE explit" in IMG tags.
My problem was bigger, becouse I couldn't disable IMG tags, and teach users to use FF. This hack is just a little file integrated addon. It works to IMG tags, and URL tags just fine. Install So, backup file: yoursite.com/forum/includes/class_bbcode.php. When you have a safty cope, you can begin with editing the file. In class_bbcode.php find: URL hack Code:
* Handles a [url] tag. Creates a link to another web page. Code:
// remove double spaces -- fixes issues with wordwrap Code:
// remove double spaces -- fixes issues with wordwrap What it do ? When posting, an URL like: goodsite.com it shows like http://goodsite.com It works on: enything.etc.goodsite.com/enything, in all ways. When you post a site like: hacksite.com it shows like http://hacksite.com [Warning, this link can be a Virus link] Ok the second part is with a IMG tag, it's the same way. When you post a secure Image the image just shows, but when you post a Image, that isn't in the if () else () script, it shows only a link and a warning. I show this example with imageshac.us that is secure to me :) IMG hack In the same file find: Code:
* Handles a match of the [img] tag that will be displayed as an actual image. Code:
// remove double spaces -- fixes issues with wordwrap Code:
// remove double spaces -- fixes issues with wordwrap Thats all, comments plax :P |
firts reserved :) for future, i will install after upgrading
|
Nice!
|
Quote:
|
I thought this had been fixed in vB !!!
|
i think all it does is add a warning next to links? I dunno im sorta confused by it all...
|
Nice! Thanks!
|
It appears to provide a warning if the site isn't trusted. Would a better method to do what slashdot does and show the main url next to it (eg. link [google.com])
|
I needed version like this, and I give you this version :) you change it in the way you want it.
With the IMG tag i allowed to show images only form imageshack.us etc. Exploit has no chance :) |
Quote:
|
interesting idea..
but there might be a need to add multiple trusted site or good site.. like with imageshack ,photobucket or more others. every time need to edit the template ? :confused: lengthy |
yep :( maybe when i have some time I make this like a plugin :)
|
:P when u will have some time ? :D
|
:) I don't know
|
Nice! Thanks!
Good |
Wanted to say, we use this to restrict images to our gallery, which is moderated.
|
All times are GMT. The time now is 05:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|