We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Image Whitelist
Topic Started: Aug 7 2012, 02:00 PM (239 Views)
Ritchie
Member
[ * ]
Board Address: http://w11.zetaboards.com/Condemned_Violence/index/
Board Software: Zetaboards
Description: I would like to restrict the websites that my users can post images from, so it is only from trusted websites and they cannot leak or harvest IP's with malicious Links. If possible an image whitelist system would be nice.

- Ritchie
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
function disableImageHost(URL) {
$('form.exclusivebutton[name="posting"]').submit(function (e) {
if ($('#c_post-text').val().indexOf('' + URL + '') !== -1) {
e.returnValue = e.preventDefault && e.preventDefault() ? false : false;
alert('You are not allowed to post images from a image host you used').one();
}
});
}

disableImageHost('IMAGE_HOST_URL');
</script>
Replace IMAGE_HOST_URL with the URL of a image host you wish to restrict, and you may repeat that line to restrict more images hosts.
Offline Profile Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic