Is blocking incoming images possible?
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please
Author Message
safecracker4hire
500+ Posts Club


Joined: Nov 26, 2004
Posts: 525
Location: Ontario - CANADA

PostPost subject: Is blocking incoming images possible?
Posted: Fri May 13, 2005 12:16 am
Reply with quote

Hi all;

Hopefully this is the right place for this one! Smile

I would like to block images from certain URL's in my forums. It seems some of my users are getting smiley happy and it's just getting out of hand. Is there any way that I can block smilies from smiliecentral.com, for example?

Oh, and I don't mean by hacking things up... I can do that no problem. I am just curious if there is a way to do it with a stock DF install.


safecracker4hire's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RHE Linux / 2.0.52 / 4.0.22 / 4.3.10 / 9.0.6.1-CVS
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
djdevon3
Gold Supporter


Joined: Aug 05, 2004
Posts: 4365

PostPost subject: Re: Is blocking incoming images possible?
Posted: Fri May 13, 2005 12:50 am
Reply with quote

could just ask them not to do it and suspend them if they do.

djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33/4.4/4.3.11
Back to top
View user's profile Visit poster's website
t31os
Supporter


Joined: Sep 22, 2004
Posts: 2025
Location: Somewhere in the intertubes... lolz

PostPost subject: Re: Is blocking incoming images possible?
Posted: Fri May 13, 2005 2:41 am
Reply with quote

Would adding smileycentral to the word censor list work?

t31os's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
XP / 2.0 / 5.1 / 5.2 / none
Back to top
View user's profile Visit poster's website
safecracker4hire
500+ Posts Club


Joined: Nov 26, 2004
Posts: 525
Location: Ontario - CANADA

PostPost subject: Re: Is blocking incoming images possible?
Posted: Fri May 13, 2005 10:56 am
Reply with quote

djdevon3 -> thought of that one! Wink It's just that doing it that way is a PITA and requires me to spend more time than I want (human interface), scanning through posts, warning people and suspending them.

t310s -> thought of that one too, late last night watchin TV, after I posted this. Haven't tried it yet, but it may do the trick.

I have also though about playing with .htaccess. I'm not great at that sorta thing, so I'll probably have to trial and error it. Possibly a rewrite rule. But that'll only work in the event LEO is being used.

Thanks for the suggestions!


safecracker4hire's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RHE Linux / 2.0.52 / 4.0.22 / 4.3.10 / 9.0.6.1-CVS
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
j-kite
Heavy poster


Joined: Jan 10, 2005
Posts: 240
Location: Ontario

PostPost subject: Re: Is blocking incoming images possible?
Posted: Fri May 13, 2005 2:36 pm
Reply with quote

If you set it as a word sensor as t310s suggested, then it will block the image.
_________________
be glad of life because it gives you the chance to love and to work and to play and to look up at the stars

j-kite's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.33 (Unix) / 4.1.13-standard / 4.3.10/ 9.0.5.0
Back to top
View user's profile Visit poster's website MSN Messenger
djdevon3
Gold Supporter


Joined: Aug 05, 2004
Posts: 4365

PostPost subject: Re: Is blocking incoming images possible?
Posted: Fri May 13, 2005 2:38 pm
Reply with quote

ah neat trick. it will still block words even if in bbcode or html tags? that's genius.

djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33/4.4/4.3.11
Back to top
View user's profile Visit poster's website
j-kite
Heavy poster


Joined: Jan 10, 2005
Posts: 240
Location: Ontario

PostPost subject: Re: Is blocking incoming images possible?
Posted: Fri May 13, 2005 2:39 pm
Reply with quote

Yeah, really nice. I've never tried html tags .. I know bbcode for sure though.
_________________
be glad of life because it gives you the chance to love and to work and to play and to look up at the stars

j-kite's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.33 (Unix) / 4.1.13-standard / 4.3.10/ 9.0.5.0
Back to top
View user's profile Visit poster's website MSN Messenger
safecracker4hire
500+ Posts Club


Joined: Nov 26, 2004
Posts: 525
Location: Ontario - CANADA

PostPost subject: Re: Is blocking incoming images possible?
Posted: Fri May 13, 2005 9:23 pm
Reply with quote

Nope, the word censor doesn't check HTML tags... tried that this morning! Smile

I did have it work once with .htaccess... but it hasn't since. Dunno what I did... but I can't replicate it now! Smile

If I figure it out, I'll let you know!


safecracker4hire's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RHE Linux / 2.0.52 / 4.0.22 / 4.3.10 / 9.0.6.1-CVS
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Phoenix
Site Admin


Joined: Apr 19, 2004
Posts: 8729
Location: Netizen

PostPost subject: Re: Is blocking incoming images possible?
Posted: Sat May 14, 2005 3:15 am
Reply with quote

Just a thought, are you using config.php or the inbuilt forum censor check?

The code in viewtopic implies it should check okay, including html tags, so I did some tests using the forum censor and it seems to do the job Smile


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
j-kite
Heavy poster


Joined: Jan 10, 2005
Posts: 240
Location: Ontario

PostPost subject: Re: Is blocking incoming images possible?
Posted: Sat May 14, 2005 4:23 am
Reply with quote

Most people use bbcode anyway, over html tags.. Just disable the <img> tag in html, that way they have to use bbcode.
_________________
be glad of life because it gives you the chance to love and to work and to play and to look up at the stars

j-kite's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.33 (Unix) / 4.1.13-standard / 4.3.10/ 9.0.5.0
Back to top
View user's profile Visit poster's website MSN Messenger
safecracker4hire
500+ Posts Club


Joined: Nov 26, 2004
Posts: 525
Location: Ontario - CANADA

PostPost subject: Re: Is blocking incoming images possible?
Posted: Sat May 14, 2005 11:40 am
Reply with quote

Phoenix wrote:
Just a thought, are you using config.php or the inbuilt forum censor check?

The code in viewtopic implies it should check okay, including html tags, so I did some tests using the forum censor and it seems to do the job Smile

I didn't even think of the $CensorList in config! Smile

I was trying to use the forums censor check, but it still doesn't appear to work for me. I have 'smileycentral' set in both the config $CensorList and the forums word censoring, but neither appear to filter the word. This is what I'm trying to get rid of --> www.kylestubbins.com/F...1.html#301 (some or my users abuse this service, making posts difficult to read).

jkite -> yeah, that's an easy solution (actually, I'm more concerned with the img tag... I don't care if they link back, just no 'hotlinking images'). However, this particular site has been up for just over 3 years. When we started, there was no forums even in an CMS, nevermind the ability to attach files. Most of my users are familiar with and use html and therefor we have alot of old html in the forums. I have gotten most to use bbcode now, but for archive purposes, need to leave the a/img tag on -- unless I want to go through something like 80,000 posts and change all the tags! (We set the img src to thumbnail size and use a to link to the full size image.) This just may turn out to be the way to go though.

Thanks again for your suggestions. It's not an easy answer to a specific problem! Smile


safecracker4hire's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
RHE Linux / 2.0.52 / 4.0.22 / 4.3.10 / 9.0.6.1-CVS
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
j-kite
Heavy poster


Joined: Jan 10, 2005
Posts: 240
Location: Ontario

PostPost subject: Re: Is blocking incoming images possible?
Posted: Sat May 14, 2005 2:40 pm
Reply with quote

Oh dang you are right. It doesn't show it in the preview, but when you sumbit, it shows it. Hmmmm.
_________________
be glad of life because it gives you the chance to love and to work and to play and to look up at the stars

j-kite's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux / 1.3.33 (Unix) / 4.1.13-standard / 4.3.10/ 9.0.5.0
Back to top
View user's profile Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.3582 seconds with 16 DB Queries in 0.0676 seconds
Memory Usage: 2.99 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy