I have a antispam plugin and I am developing a new version that will block the registration form only to blacklisted ips. In my beta version, I use the php function die() in a view extendind the register view, so blacklisted ips see only a blank page.
Is it possible send a http header with a 403 response? I think that in the register view, elgg still sent the headers. What can I do? Hooks the "start.php" or something like this? Clear the php bufeer? Or just use die() function and forget about it?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Gustavo Caldeira@gucaldeira
Gustavo Caldeira - 0 likes
- Ray J@RayJ
Ray J - 0 likes
You must log in to post replies.You need to do that: header(‘HTTP/1.0 403 Forbidden’);
Thanks Gustavo. I know headers, but wasn´t working. I resolved it using ob_end_clean() to clear the php buffers. Now everything is working.