Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
IMG and URL security Details »
IMG and URL security
Mod Version: 1.00, by bosal (Member) bosal is offline
Developer Last Online: Sep 2015 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.7 Rating: (2 votes - 4.50 average) Installs: 5
Released: 22 Feb 2007 Last Update: Never Downloads: 2
Not Supported Code Changes  

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

then scroll down till you see:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

now you must replce the this code with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Just replace the goodsite\.com with the site you know it's secure. Eg. yoursite

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Scroll down, and select:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

replace it with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Thats all, comments plax :P

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 22 Feb 2007, 21:57
katilkuzu's Avatar
katilkuzu katilkuzu is offline
 
Join Date: Feb 2006
firts reserved for future, i will install after upgrading
Reply With Quote
  #3  
Old 22 Feb 2007, 22:47
ZomgStuff's Avatar
ZomgStuff ZomgStuff is offline
 
Join Date: Feb 2007
Nice!
Reply With Quote
  #4  
Old 22 Feb 2007, 22:51
bosal's Avatar
bosal bosal is offline
 
Join Date: Feb 2005
Real name: Kuba
Originally Posted by katilkuzu View Post
firts reserved for future, i will install after upgrading
you can try it on older versions, i made it for 3.6.4, but maybe the file is the same.
__________________
To mówiłem ja bosal

http://tibia.pl/homepage/tab.gif
Reply With Quote
  #5  
Old 23 Feb 2007, 02:05
Milad's Avatar
Milad Milad is offline
 
Join Date: May 2005
Real name: Milad
I thought this had been fixed in vB !!!
Reply With Quote
  #6  
Old 23 Feb 2007, 04:13
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
i think all it does is add a warning next to links? I dunno im sorta confused by it all...
Reply With Quote
  #7  
Old 23 Feb 2007, 06:06
ZomgStuff's Avatar
ZomgStuff ZomgStuff is offline
 
Join Date: Feb 2007
Nice! Thanks!
Reply With Quote
  #8  
Old 23 Feb 2007, 13:04
Xoligy Xoligy is offline
 
Join Date: Jun 2006
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])
Reply With Quote
  #9  
Old 23 Feb 2007, 21:02
bosal's Avatar
bosal bosal is offline
 
Join Date: Feb 2005
Real name: Kuba
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
__________________
To mówiłem ja bosal

http://tibia.pl/homepage/tab.gif
Reply With Quote
  #10  
Old 24 Feb 2007, 01:33
katilkuzu's Avatar
katilkuzu katilkuzu is offline
 
Join Date: Feb 2006
Originally Posted by bosal View Post
you can try it on older versions, i made it for 3.6.4, but maybe the file is the same.
ok thanx installed ^'_'^
Reply With Quote
  #11  
Old 24 Feb 2007, 17:46
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Real name: Z.R.
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 ? lengthy
Reply With Quote
  #12  
Old 24 Feb 2007, 20:27
bosal's Avatar
bosal bosal is offline
 
Join Date: Feb 2005
Real name: Kuba
yep maybe when i have some time I make this like a plugin
__________________
To mówiłem ja bosal

http://tibia.pl/homepage/tab.gif
Reply With Quote
  #13  
Old 25 Feb 2007, 05:04
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Real name: Z.R.
:P when u will have some time ?
Reply With Quote
  #14  
Old 25 Feb 2007, 13:39
bosal's Avatar
bosal bosal is offline
 
Join Date: Feb 2005
Real name: Kuba
I don't know
__________________
To mówiłem ja bosal

http://tibia.pl/homepage/tab.gif
Reply With Quote
  #15  
Old 29 Dec 2007, 16:20
masoud_sun masoud_sun is offline
 
Join Date: Nov 2007
Nice! Thanks!

Good
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 01:26.

Layout Options | Width: Wide Color: