Giter VIP home page Giter VIP logo

honeypot's People

Contributors

ianlandsman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

honeypot's Issues

Invalid field name in your documentation

You write time_field_name and than field_name_time

Think rules should look like this

    'honey_field_name'  => 'honeypot',
    'time_field_name'   => 'required|honeytime:5'

and than form like this:

{{ Form::honeypot('honey_field_name', 'time_field_name') }}

Encrypt / decrypt problem

When I add the honeypot fields to a view I get the following error when I try to load the page. Removing "{{ Form::honeypot('homepage', 'time') }}" from the view solves it.

Unhandled Exception

Message:

mcrypt_encrypt(): Size of key is too large for this algorithm

Changing the Application key in the config file to a shorter one solved the problem. Strange thing is that encrypting cookies and sessions haven't given me any problems.

Method [honeypot] does not exist.

hello
really need your help ... Honeypot work great on localhost but I upload to server it giving me error

http://www.shiateachings.com/public/ilm/article/20/3

when i remove this line of code from the page it works fine
" {{ Form::honeypot('honey_field_name', 'time_field_name') }} "

this is whole form

{{ Form::open('comments', 'POST', array('class' => 'adminf')) }}
name, email, text box field
{{ Form::submit('Post Comments') }}
{{ Form::honeypot('honey_field_name', 'time_field_name') }}
{{ Form::token() }}
{{ Form::close() }}

Unhandled Exception

Message:

Method [honeypot] does not exist.

Location:

/home/mirlabs/public_html/shiateachings/laravel/form.php on line 615
Stack Trace:
#0 /home/mirlabs/public_html/shiateachings/laravel/view.php(366) : eval()'d code(179): Laravel\Form::__callStatic('honeypot', Array)
#1 /home/mirlabs/public_html/shiateachings/laravel/view.php(366) : eval()'d code(179): Laravel\Form::honeypot('honey_field_nam...', 'time_field_name')
#2 /home/mirlabs/public_html/shiateachings/laravel/view.php(366): eval()
#3 /home/mirlabs/public_html/shiateachings/laravel/blade.php(71): Laravel\View->get()
#4 [internal function]: Laravel{closure}(Object(Laravel\View))
#5 /home/mirlabs/public_html/shiateachings/laravel/event.php(199): call_user_func_array(Object(Closure), Array)
#6 /home/mirlabs/public_html/shiateachings/laravel/event.php(138): Laravel\Event::fire('laravel.view.en...', Array, true)
#7 /home/mirlabs/public_html/shiateachings/laravel/view.php(337): Laravel\Event::until('laravel.view.en...', Array)
#8 /home/mirlabs/public_html/shiateachings/laravel/view.php(570): Laravel\View->render()
#9 /home/mirlabs/public_html/shiateachings/laravel/response.php(246): Laravel\View->__toString()
#10 /home/mirlabs/public_html/shiateachings/laravel/laravel.php(178): Laravel\Response->render()
#11 /home/mirlabs/public_html/shiateachings/public/index.php(34): require('/home/mirlabs/p...')
#12 {main}

Thank You..

Make html shorter

I'll suggest shorter view html:

<div style="display: none !important">
{{ Form::text(Config::get('honeypot::default.honeypot_field'), '', array('id' => Config::get('honeypot::default.honeypot_field'))) }}
{{ Form::hidden(Config::get('honeypot::default.honeypot_field').'_time', time()) }}

Should JS be used to hide the Honeypot?

I'm not really sure if using inline css to hide the honeypot is the best way to hide it to human users.

Might spambots parse the css, discover it's hidden from users, and leave it empty on purpose?

I think JS is less likely to be executed by spambots, so the solution might be more bulletproof.

What's your say?

Make field names settable within html

Hi Ian,

It would be great to have the ability to set the name of the fields directly from the html declaration, something similar to this:

{{ Form::honeypot('fieldname', 'speed') }}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.